<?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 Count DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4250525#M168289</link>
    <description>&lt;P&gt;Try this measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeCompleteCount = 
CALCULATE(
    COUNTROWS(TableName), 
    FILTER(
        ALLSELECTED(TableName[Build Complete FC Date]), 
        TableName[Build Complete FC Date] &amp;lt;= MAX(TableName[Build Complete FC Date]) &amp;amp;&amp;amp;
        TableName[Build Complete FC Status] = "Complete"
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 21 Oct 2024 09:47:04 GMT</pubDate>
    <dc:creator>aduguid</dc:creator>
    <dc:date>2024-10-21T09:47:04Z</dc:date>
    <item>
      <title>Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4250456#M168284</link>
      <description>&lt;P&gt;I am new Power BI and I need help with a DAX formula.&lt;/P&gt;&lt;P&gt;I would like a forumula that is a cumulative count of "Complete" in the Build Complete FC Status column against the Build Complete FC date columns - thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&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;</description>
      <pubDate>Mon, 21 Oct 2024 09:14:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4250456#M168284</guid>
      <dc:creator>NessFlood</dc:creator>
      <dc:date>2024-10-21T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4250525#M168289</link>
      <description>&lt;P&gt;Try this measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeCompleteCount = 
CALCULATE(
    COUNTROWS(TableName), 
    FILTER(
        ALLSELECTED(TableName[Build Complete FC Date]), 
        TableName[Build Complete FC Date] &amp;lt;= MAX(TableName[Build Complete FC Date]) &amp;amp;&amp;amp;
        TableName[Build Complete FC Status] = "Complete"
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Oct 2024 09:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4250525#M168289</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-10-21T09:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4251454#M168352</link>
      <description>&lt;P&gt;Thank you, I tried but it didn't like the syntax, see below&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, 21 Oct 2024 21:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4251454#M168352</guid>
      <dc:creator>NessFlood</dc:creator>
      <dc:date>2024-10-21T21:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4251795#M168367</link>
      <description>&lt;P&gt;Thanks for the reply from aduguid&amp;nbsp;, please allow me to provide some information to add:&lt;BR /&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828309" data-lia-user-login="NessFlood" class="lia-mention lia-mention-user"&gt;NessFlood&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to the error message, you are using the table + column name 'CBR_REPORT' [BLD110 Build Complete FC] in allselect(), followed by 'CBR_REPORT' [Build Complete FC Status] which is not referenced in the dax equation&lt;/P&gt;
&lt;P&gt;You can try the following DAX:&lt;/P&gt;
&lt;P&gt;Measure：&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeCompleteCount_Measure =
IF(
    MAX([Build Complete FC Status])="Complete",
COUNTX(
    FILTER(ALL('CBR_REPORT'),
    'CBR_REPORT'[Build Complete FC Status]="Complete"&amp;amp;&amp;amp;'CBR_REPORT'[BLD110 Build Complete FC]&amp;lt;=MAX('CBR_REPORT'[BLD110 Build Complete FC])),[Ref ID]))&lt;/LI-CODE&gt;
&lt;P&gt;Caliculated Column：&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeCompleteCount_Column =
IF(
    [Build Complete FC Status]="Complete",
COUNTX(
    FILTER('CBR_REPORT',
    'CBR_REPORT'[Build Complete FC Status]="Complete"&amp;amp;&amp;amp;'CBR_REPORT'[BLD110 Build Complete FC]&amp;lt;=EARLIER('CBR_REPORT'[BLD110 Build Complete FC])),[Ref ID]))&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;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 03:06:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4251795#M168367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-22T03:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4253489#M168481</link>
      <description>&lt;P&gt;Hi there, the formulas works for the entire table but not when I filter by PSN Region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without filter&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But with filter for Canterbury Pilot it should only total 13 but it totals 17?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thanks again for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 04:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4253489#M168481</guid>
      <dc:creator>NessFlood</dc:creator>
      <dc:date>2024-10-23T04:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4255655#M168582</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828309" data-lia-user-login="NessFlood" class="lia-mention lia-mention-user"&gt;NessFlood&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you referring to Meausure in the Total row not 13?You can use IF+ ISINSCOPE() to determine if it is the total row, customize the rule .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;correct count =
IF(
    ISINSCOPE('CBR_REPORT'[Ref ID]),[CumulativeCompleteCount_Measure],COUNTX(FILTER(ALLSELECTED('CBR_REPORT'),[CumulativeCompleteCount_Measure]&amp;lt;&amp;gt;BLANK()),[Ref ID]))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&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;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 06:40:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4255655#M168582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-24T06:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4256869#M168657</link>
      <description>&lt;P&gt;Hi Liu&lt;/P&gt;&lt;P&gt;Your latest formula in purple does calculate in the column but not in the graph. I'm wanting a cumulative graph like the one on the left, which does work with the old formula except when I filter it by region. It should only return 13 completed build sites for Canterbury - pilot but keeps saying 17 and no cumulative line using the new purple formula. Again thanks for any help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 20:17:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4256869#M168657</guid>
      <dc:creator>NessFlood</dc:creator>
      <dc:date>2024-10-24T20:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4257719#M168696</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828309" data-lia-user-login="NessFlood" class="lia-mention lia-mention-user"&gt;NessFlood&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You&amp;nbsp;can&amp;nbsp;try&amp;nbsp;the&amp;nbsp;following&amp;nbsp;DAX:&amp;nbsp;Change&amp;nbsp;ALL()&amp;nbsp;to&amp;nbsp;ALLSELECTED(),&amp;nbsp;which&amp;nbsp;can&amp;nbsp;adjust&amp;nbsp;with&amp;nbsp;the&amp;nbsp;changes&amp;nbsp;in&amp;nbsp;the&amp;nbsp;filter.&lt;/P&gt;
&lt;P&gt;The ALLSELECTED function gets the context that represents all rows and columns in the query, while keeping explicit filters and contexts other than row and column filters. This function can be used to obtain visual totals in queries.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/allselected-function-dax" target="_blank"&gt;ALLSELECTED function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeCompleteCount_Measure =
COUNTX(
    FILTER(ALLSELECTED('CBR_REPORT'),
    'CBR_REPORT'[Build Complete FC Status]="Complete"&amp;amp;&amp;amp;'CBR_REPORT'[BLD110 Build Complete FC]&amp;lt;=MAX('CBR_REPORT'[BLD110 Build Complete FC])),[Ref ID])&lt;/LI-CODE&gt;
&lt;P&gt;If dax gets results that don't match your expected results, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 08:37:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4257719#M168696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-25T08:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Count DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4269805#M169316</link>
      <description>&lt;P&gt;thank you - I changed to ALLSELECTED and realised that the visuals need to be drilled down also so I can see the full result &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 00:33:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-DAX/m-p/4269805#M169316</guid>
      <dc:creator>NessFlood</dc:creator>
      <dc:date>2024-11-05T00:33:23Z</dc:date>
    </item>
  </channel>
</rss>

