<?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 Cumulative Sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3150395#M112829</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I create a cumulative Sales measure for the attached Sales table. So February is the sum of January and February. March is the sum of January, February and March. etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few Tiers (category levels) and some filters on it.&lt;/P&gt;&lt;P&gt;Can you please help me out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 15:29:35 GMT</pubDate>
    <dc:creator>JC2022</dc:creator>
    <dc:date>2023-03-23T15:29:35Z</dc:date>
    <item>
      <title>Cumulative Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3150395#M112829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I create a cumulative Sales measure for the attached Sales table. So February is the sum of January and February. March is the sum of January, February and March. etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few Tiers (category levels) and some filters on it.&lt;/P&gt;&lt;P&gt;Can you please help me out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:29:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3150395#M112829</guid>
      <dc:creator>JC2022</dc:creator>
      <dc:date>2023-03-23T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3151615#M112889</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478342" data-lia-user-login="JC2022" class="lia-mention lia-mention-user"&gt;JC2022&lt;/a&gt; , If this is your source format, I doubt this the best data for power bi. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First Unpivot the header and get the month and year and create a date using that&lt;/P&gt;
&lt;P&gt;&lt;A href="https://goodly.co.in/unpivot-data-with-2-headers/" target="_blank"&gt;https://goodly.co.in/unpivot-data-with-2-headers/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, use fill down, fill up. If needed&lt;/P&gt;
&lt;P&gt;Power Query - Fill Up Fill Down: &lt;A href="https://youtu.be/mC2ps0pFqBI" target="_blank"&gt;https://youtu.be/mC2ps0pFqBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can cumulative using a date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;examples&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;=max('Date'[date])))&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;=max(date[Date])))&lt;BR /&gt;&lt;BR /&gt;Cumm Based on net = CALCULATE([Net], Window(1,ABS,0,REL, ADDCOLUMNS(ALLSELECTED('Item'[Brand]), "_net", [Net]),ORDERBY([_net],DESC)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Based on Brand = CALCULATE([Net], Window(1,ABS,0,REL, ADDCOLUMNS(ALLSELECTED('Item'[Brand]), "_net", [Net]),ORDERBY('Item'[Brand],asc)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running Total/ Cumulative: &lt;A href="https://www.youtube.com/watch?v=h2wsO332LUo&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=41" target="_blank"&gt;https://www.youtube.com/watch?v=h2wsO332LUo&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=41&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: &lt;A href="https://youtu.be/nxc_IWl-tTc" target="_blank"&gt;https://youtu.be/nxc_IWl-tTc&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 05:29:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3151615#M112889</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-03-24T05:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3151902#M112923</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thank you! the cumulative sales measure is now working but it is also summing all previous years. How do I do this per FiscalYear? So every FiscalYear starts with 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula is now:&lt;/P&gt;&lt;P&gt;Cumulative EUR Sales = CALCULATE(SUM(Append3[EUR Sales]),filter(all('Calendar Posting Date'[Date]),'Calendar Posting Date'[Date] &amp;lt;=max('Calendar Posting Date'[Date])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 08:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sales/m-p/3151902#M112923</guid>
      <dc:creator>JC2022</dc:creator>
      <dc:date>2023-03-24T08:13:26Z</dc:date>
    </item>
  </channel>
</rss>

