<?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 for each level by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3615230#M139766</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't give accurate results. For calculating cLevel, we cannot make sure that the id is not marked as A and B, hence there can be an overalp if there were any movers from cLevel to bLevel / aLevel during the time.&lt;BR /&gt;This means, anyone who once was at cLevel will be counted in cLevel. Hope this makes sense.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 10:07:23 GMT</pubDate>
    <dc:creator>AlwaysAGooner</dc:creator>
    <dc:date>2024-01-04T10:07:23Z</dc:date>
    <item>
      <title>Cumulative count for each level by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3612667#M139666</link>
      <description>&lt;P&gt;Hey wonderful ppl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Year Greetings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am in need to calculate cumulative count for each level by months. There are three levels in the data, namely 'A', 'B' and 'C', with 'A' being the lowest.&lt;/P&gt;&lt;P&gt;Need cumulative count for each of the aforementioned levels by month. Also, pls note that an ID can have two level during a month but must always be counted once and only for the Highest level achieved, for e.g. if an ID had level 'A' and level 'B' in January then this ID must only be counted for level 'B' and not for level 'A'.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 09:10:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3612667#M139666</guid>
      <dc:creator>AlwaysAGooner</dc:creator>
      <dc:date>2024-01-03T09:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count for each level by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3614885#M139753</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="587906" data-lia-user-login="AlwaysAGooner" class="lia-mention lia-mention-user"&gt;AlwaysAGooner&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can try to use the following measure formula if helps:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR cLevel =
    CALCULATETABLE (
        VALUES ( Table1[ID] ),
        FILTER ( ALLSELECTED ( Table1 ), Table1[Level] = "C" ),
        VALUES ( Table1[Date] )
    )
VAR bLevel =
    CALCULATETABLE (
        VALUES ( Table1[ID] ),
        FILTER ( ALLSELECTED ( Table1 ), Table1[Level] = "B" &amp;amp;&amp;amp; NOT ( [ID] IN cLevel ) ),
        VALUES ( Table1[Date] )
    )
VAR aLevel =
    CALCULATETABLE (
        VALUES ( Table1[ID] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            Table1[Level] = "A"
                &amp;amp;&amp;amp; NOT ( [ID] IN UNION ( cLevel, bLevel ) )
        ),
        VALUES ( Table1[Date] )
    )
VAR currLevel =
    SELECTEDVALUE ( Table1[Level] )
RETURN
    SWITCH (
        currLevel,
        "A", COUNTROWS ( aLevel ),
        "B", COUNTROWS ( bLevel ),
        "C", COUNTROWS ( cLevel )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 07:47:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3614885#M139753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-04T07:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count for each level by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3615230#M139766</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't give accurate results. For calculating cLevel, we cannot make sure that the id is not marked as A and B, hence there can be an overalp if there were any movers from cLevel to bLevel / aLevel during the time.&lt;BR /&gt;This means, anyone who once was at cLevel will be counted in cLevel. Hope this makes sense.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 10:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3615230#M139766</guid>
      <dc:creator>AlwaysAGooner</dc:creator>
      <dc:date>2024-01-04T10:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative count for each level by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3628547#M140312</link>
      <description>&lt;P&gt;Any more suggestions? Awaiting a working solution that gives the right result&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 05:49:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-count-for-each-level-by-month/m-p/3628547#M140312</guid>
      <dc:creator>AlwaysAGooner</dc:creator>
      <dc:date>2024-01-10T05:49:33Z</dc:date>
    </item>
  </channel>
</rss>

