<?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: DAX HELP CUMULATIVE TOTALS WITH GAPS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3252902#M120063</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505766" data-lia-user-login="cool_333" class="lia-mention lia-mention-user"&gt;cool_333&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cum.Daily Acutal Units = IF(ISBLANK(MAX('Table'[Daily Acutal Units Total])),BLANK(),CALCULATE(SUM('Table'[Daily Acutal Units Total]),FILTER(ALL('Table'),[Date]&amp;lt;=MAX('Table'[Date]))))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I use the IF statement to determine whether the value is null or not, and if it is not null, it returns a cumulative value. In your case, you need to use the ISBLANK function, not the BLANK function.&lt;/P&gt;
&lt;P&gt;You could also download the attachment for mroe details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 09:15:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-25T09:15:02Z</dc:date>
    <item>
      <title>DAX HELP CUMULATIVE TOTALS WITH GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3249873#M119869</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the cumulative total but want to limit it as per max actual date and I don't want the cumulative total to be carried forward after 18/05/2023, it should only show up to 6.70.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 23:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3249873#M119869</guid>
      <dc:creator>cool_333</dc:creator>
      <dc:date>2023-05-23T23:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX HELP CUMULATIVE TOTALS WITH GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3249946#M119872</link>
      <description>&lt;P&gt;You can grab the max date with a value and use that as part of the filter arguments.&lt;/P&gt;&lt;P&gt;I'm assuming that Daily actual total units is a column and not a measure.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cumulative daily total = 
var maxDateWithDailyActualTotalUnits = CALCULATE(MAX([Date]), NOT(ISBLANK([Daily Actual Total Units])))
// your calculations 
return CALCULATE( 
    // your calculations for cumulative sum
    &amp;amp;&amp;amp; [Date] &amp;lt;= maxDateWithDailyActualTotalUnits 
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 May 2023 01:36:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3249946#M119872</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-05-24T01:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX HELP CUMULATIVE TOTALS WITH GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3252902#M120063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505766" data-lia-user-login="cool_333" class="lia-mention lia-mention-user"&gt;cool_333&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cum.Daily Acutal Units = IF(ISBLANK(MAX('Table'[Daily Acutal Units Total])),BLANK(),CALCULATE(SUM('Table'[Daily Acutal Units Total]),FILTER(ALL('Table'),[Date]&amp;lt;=MAX('Table'[Date]))))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I use the IF statement to determine whether the value is null or not, and if it is not null, it returns a cumulative value. In your case, you need to use the ISBLANK function, not the BLANK function.&lt;/P&gt;
&lt;P&gt;You could also download the attachment for mroe details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 09:15:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3252902#M120063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-25T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX HELP CUMULATIVE TOTALS WITH GAPS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3543017#M136192</link>
      <description>&lt;P&gt;I have run into issues witht the same situation where using your equations did not work on my data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If instead of the 0 value entries, you dont' have one (common if you are grabbing data from an entry system, it may not happen every day) and plotting Month-Day for date under hiearchy, instead of letting PBI autoscale for you, you will see gaps in your graphs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am trying to prevent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 17:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-HELP-CUMULATIVE-TOTALS-WITH-GAPS/m-p/3543017#M136192</guid>
      <dc:creator>SystemEngineer</dc:creator>
      <dc:date>2023-11-20T17:40:21Z</dc:date>
    </item>
  </channel>
</rss>

