<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359350#M24601</link>
    <description>&lt;P&gt;It's ok if we use a measure per status:&lt;BR /&gt;starting with: distinct status1=calc(countdistinct(studentID),Status="status 1")&lt;/P&gt;&lt;P&gt;Expected Result :&lt;BR /&gt;Status1 = 2&lt;BR /&gt;Status2 = 3&lt;BR /&gt;Status3 = 2&lt;BR /&gt;Status4 = 2&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 19:33:38 GMT</pubDate>
    <dc:creator>RK9009</dc:creator>
    <dc:date>2020-09-09T19:33:38Z</dc:date>
    <item>
      <title>Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359280#M24597</link>
      <description>&lt;P&gt;Greeting PBI Community, I need help with this dax measure&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;studentID&lt;/TD&gt;&lt;TD&gt;status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abc123&lt;/TD&gt;&lt;TD&gt;status 1&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abc123&lt;/TD&gt;&lt;TD&gt;status 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abc123&lt;/TD&gt;&lt;TD&gt;status 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;abc123&lt;/TD&gt;&lt;TD&gt;status 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bca231&lt;/TD&gt;&lt;TD&gt;status 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;bca231&lt;/TD&gt;&lt;TD&gt;status 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cab321&lt;/TD&gt;&lt;TD&gt;status 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cab231&lt;/TD&gt;&lt;TD&gt;status 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xyz234&lt;/TD&gt;&lt;TD&gt;status 1&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;alm222&lt;/TD&gt;&lt;TD&gt;status 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;blz121&lt;/TD&gt;&lt;TD&gt;status 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cla234&lt;/TD&gt;&lt;TD&gt;status 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;zla232&lt;/TD&gt;&lt;TD&gt;status4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cls343&lt;/TD&gt;&lt;TD&gt;status4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here’s an example: first we distinctcount all the studentIDs in Status1 - I.e 2&lt;BR /&gt;then we count all student IDs in Status 2 exluding the ones counted in Status1&lt;BR /&gt;then count all Student IDs in Status3 exlucding IDs in Status1&amp;amp;2&lt;BR /&gt;Then Count all IDs in status4 excluding IDs counted in Status 1,2,3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 19:06:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359280#M24597</guid>
      <dc:creator>RK9009</dc:creator>
      <dc:date>2020-09-09T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359340#M24600</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257714" data-lia-user-login="RK9009" class="lia-mention lia-mention-user"&gt;RK9009&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you need a single measure that calculates one result or is against each Status?&lt;BR /&gt;Can you share the expected output as well?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 19:26:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359340#M24600</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-09-09T19:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359350#M24601</link>
      <description>&lt;P&gt;It's ok if we use a measure per status:&lt;BR /&gt;starting with: distinct status1=calc(countdistinct(studentID),Status="status 1")&lt;/P&gt;&lt;P&gt;Expected Result :&lt;BR /&gt;Status1 = 2&lt;BR /&gt;Status2 = 3&lt;BR /&gt;Status3 = 2&lt;BR /&gt;Status4 = 2&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 19:33:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359350#M24601</guid>
      <dc:creator>RK9009</dc:creator>
      <dc:date>2020-09-09T19:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359356#M24602</link>
      <description>&lt;P&gt;Sorry Status 2 =2&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 19:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359356#M24602</guid>
      <dc:creator>RK9009</dc:creator>
      <dc:date>2020-09-09T19:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359409#M24605</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257714" data-lia-user-login="RK9009" class="lia-mention lia-mention-user"&gt;RK9009&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please recheck your results: Following Measure works for me:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Count = 
VAR DT1 = 
CALCULATETABLE(
    DISTINCT('Table1 (2)'[studentID]),
    FILTER(ALL('Table1 (2)'[status]), 'Table1 (2)'[status] &amp;lt; SELECTEDVALUE('Table1 (2)'[status]))
)

VAR DT2 = 
CALCULATETABLE(
    DISTINCT('Table1 (2)'[studentID]),
    FILTER(ALL('Table1 (2)'[studentID]),
        NOT 'Table1 (2)'[studentID] IN DT1 ) 
)
VAR D2 =  COUNTROWS(DT2)

RETURN

D2&lt;/LI-CODE&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;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 20:06:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359409#M24605</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-09-09T20:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359447#M24607</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;thank you so much for the reply, can you please specify what the status numbers are in the measure;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Total Count = 
VAR DT1 = 
CALCULATETABLE(
    DISTINCT('Table1 (2)'[studentID]),
    FILTER(ALL('Table1 (2)'[status]), 'Table1 (2)'[status] &amp;lt; SELECTEDVALUE('Table1 (2)'[status]))
)

VAR DT2 = 
CALCULATETABLE(
    DISTINCT('Table1 (2)'[studentID]),
    FILTER(ALL('Table1 (2)'[studentID]),
        NOT 'Table1 (2)'[studentID] IN DT1 ) 
)
VAR D2 =  COUNTROWS(DT2)

RETURN

D2&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Sep 2020 20:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359447#M24607</guid>
      <dc:creator>RK9009</dc:creator>
      <dc:date>2020-09-09T20:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359609#M24612</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257714" data-lia-user-login="RK9009" class="lia-mention lia-mention-user"&gt;RK9009&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need to specify, when you drop this measure against the status in a table visual as I did, it calculates based on the status value. The status1 is lower than status2 and so on. You can add more status values &amp;nbsp;in the same order if needed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;let me know if you need any help after the testing &amp;nbsp;it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359609#M24612</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-09-09T22:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359634#M24613</link>
      <description>&lt;P&gt;Does it work if it is a has to follow a hierarchy as in&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All id in A being first to all ID in D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:44:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359634#M24613</guid>
      <dc:creator>RK9009</dc:creator>
      <dc:date>2020-09-09T22:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359641#M24615</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257714" data-lia-user-login="RK9009" class="lia-mention lia-mention-user"&gt;RK9009&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I did not fully understand your question, why don't you try,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as per your sample, it works&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:57:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help/m-p/1359641#M24615</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-09-09T22:57:55Z</dc:date>
    </item>
  </channel>
</rss>

