<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum/m-p/1830946#M38924</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="132246" data-lia-user-login="jct999" class="lia-mention lia-mention-user"&gt;jct999&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;On day 15 for Product 2, there is no record, so the formula cannot produce a result. To achieve what you need, you need to create a dimension table for DAY. Please check the attached file where you will find the solution. You need to modify your formula to point to the dimension table for DAY.&lt;BR /&gt;&lt;BR /&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 22:02:47 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2021-05-07T22:02:47Z</dc:date>
    <item>
      <title>Cumulative sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum/m-p/1830928#M38922</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with 3 columns : PRODUCT, DAY and QUANTITY.&lt;/P&gt;&lt;P&gt;I want to set up a pivot table that displays :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Quantity per product and per day&lt;/LI&gt;&lt;LI&gt;Cumulative quantity per product, day over day.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a measure to calculate the Cumulative quantity :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;CUMULATIVE :=&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;STRONG&gt;VAR CURRENT_DAY = MAX( 'DATASET'[DAY]) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RETURN CALCULATE(&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;&lt;STRONG&gt;SUM('DATASET'[QUANTITY]); &lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-90px"&gt;&lt;STRONG&gt;ALL('DATASET'[DAY]);'DATASET'[DAY]&amp;lt;=CURRENT_DAY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem : I have no data for Product 2 on Day 15 ; then my measure can't calculate the cumulative quantity for this product on this day.&lt;BR /&gt;Quite easily, I think that the reason is that the CURRENT_DAY variable is blank for Product 2 on Day 15 &lt;span class="lia-unicode-emoji" title=":tired_face:"&gt;😫&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone can help me to modify the measure in order to enable the calculation of the Cumulative quantity in this context (i.e even if there is no data) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note that : I need a solution that works in PowerBI and Excel 2016. I have no calendar table in my model, Days are just numbers from 1 to 20.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 21:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum/m-p/1830928#M38922</guid>
      <dc:creator>jct999</dc:creator>
      <dc:date>2021-05-07T21:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum/m-p/1830946#M38924</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="132246" data-lia-user-login="jct999" class="lia-mention lia-mention-user"&gt;jct999&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;On day 15 for Product 2, there is no record, so the formula cannot produce a result. To achieve what you need, you need to create a dimension table for DAY. Please check the attached file where you will find the solution. You need to modify your formula to point to the dimension table for DAY.&lt;BR /&gt;&lt;BR /&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 22:02:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum/m-p/1830946#M38924</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-07T22:02:47Z</dc:date>
    </item>
  </channel>
</rss>

