<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running Total Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998153#M155521</link>
    <description>&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/computing-running-totals-in-dax/" target="_blank"&gt;Computing running totals in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 12:07:48 GMT</pubDate>
    <dc:creator>foodd</dc:creator>
    <dc:date>2024-06-18T12:07:48Z</dc:date>
    <item>
      <title>Running Total Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998083#M155519</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is table visual in the powerbi i want value in 2015, 01 sum of previous three month same as it is for the 2015, 02 sum of the previous three month includes(2015,01) (2014,12) (2014,11) like wise for the next.&lt;/P&gt;&lt;P&gt;I have used sample finance data in the powerbi desktop and i created a Calender table using the following dax.&lt;/P&gt;&lt;P&gt;If anyone have idea to possible this kind of the solution or not using dax or anything in powerbi...?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Calender = CALENDAR(DATE(2013,09,01), DATE(2015,03,01))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;and make a relation ship on the invoice date column of the sample data (finanace) in powerbi.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 11:22:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998083#M155519</guid>
      <dc:creator>PIYUSHPRAJAPATI</dc:creator>
      <dc:date>2024-06-18T11:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998133#M155520</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687915" data-lia-user-login="PIYUSHPRAJAPATI" class="lia-mention lia-mention-user"&gt;PIYUSHPRAJAPATI&lt;/a&gt;&amp;nbsp;-can you try below measure and replace the columns and tables as per your file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Running total =&lt;/SPAN&gt; &lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[profittotal]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;datesbetween&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;minx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 11:55:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998133#M155520</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-18T11:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998153#M155521</link>
      <description>&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/computing-running-totals-in-dax/" target="_blank"&gt;Computing running totals in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998153#M155521</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-06-18T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998182#M155531</link>
      <description>&lt;P&gt;I want answer in the last three month only and they took value from the previous three month only..... as i mentioned in the question like in 2015,01 answer is 29,785,822.02 and in the 2015, 02 answer is 47,141,824.12 like wise for the 2015,03. But you mentioned in the solution after the 2014 december in the 2015 whole year in each month same solution that i got but i think this kind of the scenario is not possible as i think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:22:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/3998182#M155531</guid>
      <dc:creator>PIYUSHPRAJAPATI</dc:creator>
      <dc:date>2024-06-18T12:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/4001938#M155981</link>
      <description>&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="89602" data-lia-user-login="foodd" class="lia-mention lia-mention-user"&gt;foodd&lt;/a&gt;&amp;nbsp;and&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;，please allow me to provide another insight:&lt;BR /&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687915" data-lia-user-login="PIYUSHPRAJAPATI" class="lia-mention lia-mention-user"&gt;PIYUSHPRAJAPATI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Regarding the issue you raised, my solution is as follows:&lt;/P&gt;
&lt;P&gt;1.As for your question, our answer is that your answer is correct, in powerbi if you want to use dax to implement the first three data accumulation and so repeated, is a typical recursive problem, which is difficult to achieve in powerbi using dax.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Recursion-in-DAX/m-p/2633314" target="_blank" rel="noopener"&gt;Solved: Recursion in DAX - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.You can try doing the calculation in excel first and then importing it into power bi. This is by far the easiest way. Here is a link to the relevant documentation:&lt;BR /&gt;&lt;A href="https://spreadsheetweb.com/how-to-create-recursive-functions-in-excel/" target="_blank" rel="noopener"&gt;How to create recursive functions in Excel with LAMBDA (spreadsheetweb.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.You can also implement this function in PowerQurey, but you need to invest more effort:&lt;/P&gt;
&lt;P&gt;Here is a link to the relevant documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mentor.enterprisedna.co/queries/recursive-functions-in-power-query" target="_blank" rel="noopener"&gt;Recursive Functions in Power Query | Power BI Data (enterprisedna.co)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Of course, you are welcome to share your new findings with us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Leroy Lu&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider Accept it &lt;STRONG&gt;&lt;EM&gt;as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 08:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-Help/m-p/4001938#M155981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T08:41:57Z</dc:date>
    </item>
  </channel>
</rss>

