<?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: Cumulative Sum or Running Total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438430#M26886</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can typically get Cumulative&amp;nbsp; as measure like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] &amp;lt;=maxx(date,date[date])))&lt;BR /&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] &amp;lt;=max(Sales[Sales Date])))&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 11:34:16 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-10-16T11:34:16Z</dc:date>
    <item>
      <title>Cumulative Sum or Running Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438261#M26884</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a little problem calculating a cumulative sum (or running total) via dax. As shown by my data model, I have two fact tables and a calendar table linked together via the "Date" column. The objective is to represent on the X axis the WD_in_the_month and for the whole of the various days, show the cumulative sum of the two amount values Fact_Delivery_note [Amount] and Fact_Invoince_Line [Amount] on the Y axis.&lt;BR /&gt;I enclose a screen with an example of the data available, bearing in mind that I have a two-year history and I do not have time filters in the dashboard and I have to represent the daily data for each month (e.g. I use start_date and date_today () to identify the reference time period as in the example from 1 to 07/07/2020).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try this solution (attach script in dax) but it doesn't work.&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 10:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438261#M26884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-16T10:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum or Running Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438430#M26886</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can typically get Cumulative&amp;nbsp; as measure like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] &amp;lt;=maxx(date,date[date])))&lt;BR /&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] &amp;lt;=max(Sales[Sales Date])))&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 11:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438430#M26886</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-16T11:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum or Running Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438540#M26897</link>
      <description>&lt;P&gt;Hi Amitchandak,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the sample data and data model in the screen above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is everything clear or you need a more details?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 12:29:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1438540#M26897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-16T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum or Running Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1441945#M26977</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where do i upload a pbix file here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add further details to the problem you existed. Having available data covering several years, my goal is based on the time period of reference (eg. the reason why I insert in the code VAR DATE_TODAY ()) to identify the portion of the data of my interest (eg data that do from 2019 to 2020, I select only the current month October 2020 and i don't use a filter time period) and I calculate the cumulative sum of that period but the DAX code does not give me the desired results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached I uploaded additional screens to make the problem clearer:&lt;/P&gt;&lt;P&gt;1) For each table in the yellow data model I have selected my period of interest (October 2020);&lt;BR /&gt;2) The DAX code and the result that comes from the graphs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot to anyone who can help me to solve this problem.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 11:28:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-or-Running-Total/m-p/1441945#M26977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-19T11:28:25Z</dc:date>
    </item>
  </channel>
</rss>

