<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: How to add previous row to the next row  (Thread)</title><description> Hi everyone,  Im working on a project in SpiraTest and need some help with ESQL. Specifically, I want to:   Include the previous data in the next row to be added.    Actual Result:      Execution Date for Test Set  Passed Test Case     15/04/2025  3    16/04/2025  1        Preffered Result:      Execution Date for Test Set  Passed Test Case     15/04/2025  3    16/04/2025  4                   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! </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/3032.aspx</link><item><guid isPermaLink="false">threadId=3032</guid><author>LANCE JEWEL JAVIER (lance.javier@metrobank.com.ph)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">SQL </category><title>How to add previous row to the next row </title><description> Hi everyone,  Im working on a project in SpiraTest and need some help with ESQL. Specifically, I want to:   Include the previous data in the next row to be added.    Actual Result:      Execution Date for Test Set  Passed Test Case     15/04/2025  3    16/04/2025  1        Preffered Result:      Execution Date for Test Set  Passed Test Case     15/04/2025  3    16/04/2025  4                   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! </description><pubDate>Wed, 30 Apr 2025 00:58:54 -0400</pubDate><a10:updated>2025-08-06T16:00:36-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx</link></item><item><guid isPermaLink="false">messageId=7213</guid><author>Victoria D (nino.diasamidze@inflectra.com)</author><title> Hello,  Can you please share the actual query that calculates the number of passed tests?     Regar</title><description> Hello,  Can you please share the actual query that calculates the number of passed tests?     Regards, Victoria - </description><pubDate>Wed, 30 Apr 2025 07:08:54 -0400</pubDate><a10:updated>2025-04-30T07:08:54-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx#reply7213</link></item><item><guid isPermaLink="false">messageId=7214</guid><author>LANCE JEWEL JAVIER (lance.javier@metrobank.com.ph)</author><title> Hi this is my created SQL with the Total Passed and Total Executed TCs   SELECT    Combined_Date,  </title><description> Hi this is my created SQL with the Total Passed and Total Executed TCs   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_Executed FROM      SpiraTestEntities.R_TestRuns AS TR INNER JOIN      SpiraTestEntities.R_TestCases AS TC      ON TR.END_DATE = TC.EXECUTION_DATE WHERE      TR.PROJECT_ID = ${ProjectId} GROUP BY      TruncateTime(TR.END_DATE) AS Combined_Date   </description><pubDate>Wed, 30 Apr 2025 07:56:39 -0400</pubDate><a10:updated>2025-04-30T07:56:39-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx#reply7214</link></item><item><guid isPermaLink="false">messageId=7249</guid><author>Sophia Smith (sophiaclairesm@gmail.com)</author><title> Hi,  To add the value of the previous row to the current row (cumulative total), you can use the fu</title><description> 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. </description><pubDate>Thu, 15 May 2025 02:30:16 -0400</pubDate><a10:updated>2025-05-30T07:26:54-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx#reply7249</link></item><item><guid isPermaLink="false">messageId=7250</guid><author>Johnnie Shaw (marshcalvin139@gmail.com)</author><title> You can use the function to determine the total running in order of execution date by adding the va</title><description> 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).  </description><pubDate>Fri, 16 May 2025 04:25:29 -0400</pubDate><a10:updated>2025-05-30T07:27:02-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx#reply7250</link></item><item><guid isPermaLink="false">messageId=7334</guid><author>Victoria D (nino.diasamidze@inflectra.com)</author><title> Hello,  I think that you should use XSLT functionality for this, something like this:        I woul</title><description> Hello,  I think that you should use XSLT functionality for this, something like this:        I would recommend  logging a support ticket  if you need more assistance.     Regards, Victoria - </description><pubDate>Thu, 24 Jul 2025 07:16:28 -0400</pubDate><a10:updated>2025-07-24T07:16:28-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx#reply7334</link></item><item><guid isPermaLink="false">messageId=7351</guid><author>jae aer (james918001@gmail.com)</author><title> To achieve a running total of passed test cases, you can use a window function like SUM(...) OVER (</title><description> To achieve a running total of passed test cases, you can use a window function like SUM(...) OVER (...) if your ESQL version supports it. </description><pubDate>Wed, 06 Aug 2025 16:00:36 -0400</pubDate><a10:updated>2025-08-07T10:09:36-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/3032.aspx#reply7351</link></item></channel></rss>