<?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 using Measure DAX in PowerPivot in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831409#M38947</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251805" data-lia-user-login="mhrkhader01" class="lia-mention lia-mention-user"&gt;mhrkhader01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you explain how the column should be calculated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 14:49:35 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2021-05-08T14:49:35Z</dc:date>
    <item>
      <title>cumulative sum using Measure DAX in PowerPivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831351#M38945</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can i have the formula for Measure in DAX in PowerPivot&amp;nbsp; for the Last column? one of the active members has solved it using PowerQuery, but is there any formula in DAX Measure ?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Maher&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 13:00:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831351#M38945</guid>
      <dc:creator>mhrkhader01</dc:creator>
      <dc:date>2021-05-08T13:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum using Measure DAX in PowerPivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831409#M38947</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251805" data-lia-user-login="mhrkhader01" class="lia-mention lia-mention-user"&gt;mhrkhader01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you explain how the column should be calculated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 14:49:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831409#M38947</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-08T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum using Measure DAX in PowerPivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831490#M38955</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251805" data-lia-user-login="mhrkhader01" class="lia-mention lia-mention-user"&gt;mhrkhader01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link down below.&lt;/P&gt;&lt;P&gt;This cannot be the ultimate solution, however, I think, this can be one of the solutions for the situation that shows frequent reset situation (less than or equal to every 5 months).&lt;/P&gt;&lt;P&gt;If the situation needs to be considered at least 12 months, I can write 7 more measures. However, If the situation asks to consider 5 years (60 months and write 55 more measures), for instance, then this is not the efficient solution.&lt;/P&gt;&lt;P&gt;I am not sure how your case looks like, but if your case is looking for the solution to reset like this, I think the every-reset period in the case is not more than 12 months.... it is just my guessing....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All measures are in the sample pbix file, and all steps are numbered in front of each measure.&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;A href="https://www.dropbox.com/s/6pv0xt3gb1wigw1/mhrkhader01.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/6pv0xt3gb1wigw1/mhrkhader01.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 17:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1831490#M38955</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-08T17:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum using Measure DAX in PowerPivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1834384#M39037</link>
      <description>&lt;P&gt;Dear Team. i will explain how the column is calculated&lt;/P&gt;&lt;P&gt;suppose you work in sales, every month there is a target, for one of the Month, if you exceed the target, then i need to save this increase in Accumulative column. lets take example&lt;/P&gt;&lt;P&gt;1 jan , Sales=103904, Target = 108371, so Diff = Sales - Target. so Diff = 103904-108371=-4467, if Diff &amp;gt;0 then we need to save The Value in Accumulative. but if the value less than 0, i need to subtract the value from previous month accumulative, since this is the first month, i need to add 0 to accumulative column. not negative value, to show that my saving amount is 0.&lt;/P&gt;&lt;P&gt;so accumulative value for Jan = 0.&lt;/P&gt;&lt;P&gt;now lets see Feb&lt;/P&gt;&lt;P&gt;1 Feb, Sales ,&amp;nbsp;Sales=184515, Target = 101049, so Diff = Sales - Target. so Diff = 83466, if Diff &amp;gt;0 then we need to save The Value in Accumulative. but if the value less than 0, i need to add 0 to accumulative column.&lt;/P&gt;&lt;P&gt;so accumulative value for Feb= Jan accumulative + Feb Increase = 0 + 83466, so Feb Accumulative = 83466&lt;/P&gt;&lt;P&gt;lets see for March&lt;/P&gt;&lt;P&gt;1 Mar, Sales=175449, Target = 200000, so Diff = Sales - Target. so Diff = -24551, if Diff &amp;gt;0 then we need to save The Value in Accumulative. but if the value less than 0, i need to subtract this value from Accumulative Value if accumulative value is more than 0. so accumulative = Feb Accumulative + March Incrase or decrease = 83466+-24551, so total = 58915.&lt;/P&gt;&lt;P&gt;lets see for 1 Apr, Sales=193121, Target = 200000, so Diff = Sales - Target. so Diff =-106879, if Diff &amp;gt;0 then we need to save The Value in Accumulative. but if the value less than 0, i need to subtract the Value from accumulative column.&lt;/P&gt;&lt;P&gt;so accumulative value for Mar= 58915. so 58915+-106879 = , here the result is less than 0, so we need to show 0, not negative value. so accumulative value for April = 0&lt;/P&gt;&lt;P&gt;lets see for 1 May, Sales=182197, Target = 200000, so Diff = Sales - Target. so Diff =-17803, if Diff &amp;gt;0 then we need to save The Value in Accumulative. but if the value less than 0, i need to subtract the Value from accumulative column.&lt;/P&gt;&lt;P&gt;so accumulative value for Apr= 0. so 0+-17803= , here the result is less than 0, so we need to show 0, not negative value.&lt;/P&gt;&lt;P&gt;lets see for 1 June, Sales=170824, Target = 100000, so Diff = Sales - Target. so Diff =70824, if Diff &amp;gt;0 then we need to save The Value in Accumulative. but if the value less than 0, i need to subtract the Value from accumulative column.&lt;/P&gt;&lt;P&gt;so accumulative value for May= 0. so 0+70824=70824 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on.....&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 19:34:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-sum-using-Measure-DAX-in-PowerPivot/m-p/1834384#M39037</guid>
      <dc:creator>mhrkhader01</dc:creator>
      <dc:date>2021-05-10T19:34:28Z</dc:date>
    </item>
  </channel>
</rss>

