<?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: Missing values in cumulative dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027216#M159063</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That takes me back where i started, however i do want to say that what is causing this error is that for period 5 there are no values, however, if its its a cumulative total, the result should be 68 not 0&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;</description>
    <pubDate>Fri, 05 Jul 2024 14:37:41 GMT</pubDate>
    <dc:creator>josuesanchezSA</dc:creator>
    <dc:date>2024-07-05T14:37:41Z</dc:date>
    <item>
      <title>Missing values in cumulative dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4023552#M158795</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get a cumulative total which as you can see below it works, except in period 05 and 09, the totals should be 68 for period 05 and 108 for period 09. Since there were no values found for that period it gives you a zero. Can you please assist.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = 
var startyear = DATE(2022,10,01)
var enddate = MAX(Table1[Date Entered])-365
return 
IF(CALCULATE(COUNTA('Table1'[ID]),DATESBETWEEN('Calendar'[Date],startyear,enddate))=BLANK()
,0,
CALCULATE(COUNTA('Table1'[ID]),DATESBETWEEN('Calendar'[Date],startyear,enddate)))&lt;/LI-CODE&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;</description>
      <pubDate>Wed, 03 Jul 2024 18:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4023552#M158795</guid>
      <dc:creator>josuesanchezSA</dc:creator>
      <dc:date>2024-07-03T18:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in cumulative dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4024179#M158837</link>
      <description>&lt;P&gt;Try this measure. I'm assuming your column "Month Period" is coming from your calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CumulativeAmount = 
VAR _start_date = DATE(2022, 10, 01)
VAR _end_date = MAX(Table1[Date Entered]) - 365
VAR _result = 
    CALCULATE(
        COUNT(Table1[ID]),
        FILTER(
            ALL('Calendar'),
            'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date]) 
            &amp;amp;&amp;amp; 'Calendar'[Date] &amp;gt;= _start_date
            &amp;amp;&amp;amp; 'Calendar'[Date] &amp;gt; _end_date
        )
    )

RETURN
_result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 05:37:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4024179#M158837</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-07-04T05:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in cumulative dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027118#M159047</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original formula return ineffective results, however i modify this symbol and it turn the following below, still blank fields for period 5.&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;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result below is with original formula you sent:&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;</description>
      <pubDate>Fri, 05 Jul 2024 13:44:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027118#M159047</guid>
      <dc:creator>josuesanchezSA</dc:creator>
      <dc:date>2024-07-05T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in cumulative dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027138#M159050</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CumulativeAmount = 
VAR _start_date = DATE(2022, 10, 01)
VAR _end_date = MAX(Table1[Date Entered]) - 365
VAR _result = 
    CALCULATE(
        COUNT(Table1[ID]) + 0,
        FILTER(
            ALL('Calendar'),
            'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date]) 
            &amp;amp;&amp;amp; 'Calendar'[Date] &amp;gt;= _start_date
            &amp;amp;&amp;amp; 'Calendar'[Date] &amp;lt; _end_date
        )
    )

RETURN
_result&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027138#M159050</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-07-05T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in cumulative dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027216#M159063</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That takes me back where i started, however i do want to say that what is causing this error is that for period 5 there are no values, however, if its its a cumulative total, the result should be 68 not 0&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;</description>
      <pubDate>Fri, 05 Jul 2024 14:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4027216#M159063</guid>
      <dc:creator>josuesanchezSA</dc:creator>
      <dc:date>2024-07-05T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in cumulative dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4032007#M159474</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770211" data-lia-user-login="josuesanchezSA" class="lia-mention lia-mention-user"&gt;josuesanchezSA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, try the following methods:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
VAR startyear = DATE(2023, 01, 01)
VAR enddate = MAX('Table1'[Date]) - 365
VAR CurrentDate = MAX('Table'[Date])
var _period = SELECTEDVALUE(Table1[Month Period])
var result = CALCULATE(
    COUNTA('Table1'[ID]),
    FILTER(
        ALL('Table'),
        'Table'[Date] &amp;lt;= CurrentDate
            &amp;amp;&amp;amp; 'Table'[Date] &amp;gt;= startyear
            &amp;amp;&amp;amp; 'Table'[Date] &amp;lt; enddate
    )

)
RETURN
IF(ISBLANK(result) || _period &amp;gt; 9, 0 , result)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 06:50:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-values-in-cumulative-dax/m-p/4032007#M159474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-06T06:50:24Z</dc:date>
    </item>
  </channel>
</rss>

