Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > How to add previous row t...
Hi everyone,
I'm working on a project in SpiraTest and need some help with ESQL. Specifically, I want to:
Actual Result:
Preffered Result:
2. Add a new column that is based on the Planned_date field, incremented by 5 days for a specified number of times.
Has anyone done something similar or can provide guidance on how to achieve this? Any examples or tips would be greatly appreciated!
Thanks in advance!
Hello,
Can you please share the actual query that calculates the number of passed tests?
Regards,Victoria -
Hi this is my created SQL with the Total Passed and Total Executed TC's SELECT Combined_Date, SUM(CASE WHEN TC.EXECUTION_STATUS_NAME = 'Passed' THEN 1 ELSE 0 END) AS Total_Passed, SUM(CASE WHEN TC.EXECUTION_STATUS_NAME = 'Passed' THEN 1 ELSE 0 END) + SUM(CASE WHEN TC.EXECUTION_STATUS_NAME = 'Failed' THEN 1 ELSE 0 END) AS Total_ExecutedFROM SpiraTestEntities.R_TestRuns AS TRINNER JOIN SpiraTestEntities.R_TestCases AS TC ON TR.END_DATE = TC.EXECUTION_DATEWHERE TR.PROJECT_ID = ${ProjectId}GROUP BY TruncateTime(TR.END_DATE) AS Combined_Date
Hi,
To add the value of the previous row to the current row (cumulative total), you can use the function to calculate the total running in order of execution date. As for creating an additional date column increasing by Planned_date every 5 days, you just need to repeat the operation of adding 5 days for each record.
Monkey Mart
You can use the function to determine the total running in order of execution date by adding the value of the previous row to the current row (cumulative total).
Sprunki Incredibox
And if you have any questions, please email or call us at +1 (202) 558-6885