<?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: How to Count with different values in same coloumn in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4164516#M165442</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;A href="https://learn.microsoft.com/en-us/dax/dax-operator-reference?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;DAX operators - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result measure: =
CALCULATE (
    COUNTROWS ( VALUES ( 'STATUS'[ID] ) ),
    'STATUS'[STATUS]
        IN { "Waiting on customers", "Pending on user", "Pending Settlement" }
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Sep 2024 03:47:52 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-09-22T03:47:52Z</dc:date>
    <item>
      <title>How to Count with different values in same coloumn</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4164470#M165438</link>
      <description>&lt;UL&gt;&lt;LI&gt;Hey There,&lt;/LI&gt;&lt;LI&gt;I just want to count with different values in the same coloumn like this example:&lt;/LI&gt;&lt;LI&gt;CALCULATE(COUNT('STATUS'),'STATUS' = "Waiting on customers",'STATUS' = "Pending on user", 'STATUS' = "Pending Settlement")&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Like the above example I need the total count of all conditions like if the Waiting on customers = 167 and Pending on User = 768 and Pending Settlement = 600 I need the sum of them as the result&lt;/LI&gt;&lt;LI&gt;I hope I described my need in a good way and TIA for your help&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 22 Sep 2024 01:16:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4164470#M165438</guid>
      <dc:creator>Goudaaa</dc:creator>
      <dc:date>2024-09-22T01:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count with different values in same coloumn</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4164516#M165442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;A href="https://learn.microsoft.com/en-us/dax/dax-operator-reference?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;DAX operators - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result measure: =
CALCULATE (
    COUNTROWS ( VALUES ( 'STATUS'[ID] ) ),
    'STATUS'[STATUS]
        IN { "Waiting on customers", "Pending on user", "Pending Settlement" }
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2024 03:47:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4164516#M165442</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-09-22T03:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count with different values in same coloumn</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4168984#M165627</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="810155" data-lia-user-login="Goudaaa" class="lia-mention lia-mention-user"&gt;Goudaaa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to display the total count after each status, you can try the following measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE = 
VAR _statu =
    MAX ( 'Table'[STATUS] ) = "Waiting on customers"
        || MAX ( 'Table'[STATUS] ) = "Pending on user"
        || MAX ( 'Table'[STATUS] ) = "Pending Settlement"
VAR _count =
    CALCULATE (
        COUNT ( 'Table'[STATUS] ),
        FILTER ( ALL ( 'Table' ), 'Table'[STATUS] = MAX ( 'Table'[STATUS] ) )
    )
VAR _all =
    CALCULATE (
        COUNT ( 'Table'[STATUS] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[STATUS] = "Waiting on customers"
                || 'Table'[STATUS] = "Pending on user"
                || 'Table'[STATUS] = "Pending Settlement"
        )
    )
RETURN
    IF (
        ISINSCOPE ( 'Table'[STATUS] ) &amp;amp;&amp;amp; _statu,
        _count,
        IF ( NOT ISINSCOPE ( 'Table'[STATUS] ), _all )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 02:43:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-with-different-values-in-same-coloumn/m-p/4168984#M165627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T02:43:22Z</dc:date>
    </item>
  </channel>
</rss>

