<?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: Need help comparing rows and after that counting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2939383#M97024</link>
    <description>&lt;P&gt;I managed to solve my problem using the method of the accepted solution in &lt;A href="https://community.powerbi.com/t5/Desktop/Count-based-on-another-column/m-p/422792/highlight/true#M194426" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;. Just added one more filtering to the calculate.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 15:25:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-30T15:25:28Z</dc:date>
    <item>
      <title>Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935587#M96718</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a dataset a little more complicated but in the same direction as this:&lt;BR /&gt;&lt;BR /&gt;I can arrange in 2 types:&lt;BR /&gt;Type1:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Subject&lt;/TD&gt;&lt;TD&gt;Name1&lt;/TD&gt;&lt;TD&gt;State1&lt;/TD&gt;&lt;TD&gt;Name2&lt;/TD&gt;&lt;TD&gt;State2&lt;/TD&gt;&lt;TD&gt;Name3&lt;/TD&gt;&lt;TD&gt;State3&lt;/TD&gt;&lt;TD&gt;Name4&lt;/TD&gt;&lt;TD&gt;State4&lt;/TD&gt;&lt;TD&gt;Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;EFG&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;PRO&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;EFG&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;ADC&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;PRO&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Type2:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Subject&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;State&lt;/TD&gt;&lt;TD&gt;Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;EFG&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;PRO&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;PRO&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Name needs to be in the approved state 2 or 3, and not to count if it is not repeated in another column like in C Subject ABD appears 2 times with the States 2 &amp;amp; 3 but is counted one single time.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have managed to do it using measure with the Type2 table arrange but i need it to be in column :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;('File'[Name]),'File'[State] &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"3"&lt;/SPAN&gt;&lt;SPAN&gt;}) .&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Note that I can not use the measure in a table that I will dispaly the subjects with all of the names and the states cause it will split and count every row in part.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do you have a solution for me? Thank you!&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 11:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935587#M96718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T11:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935744#M96731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It is bit confusing to undertand.&lt;/P&gt;&lt;P&gt;Can you paste your desired output according to the Type 1 and Type 2 table.&lt;/P&gt;&lt;P&gt;Waiting for you resposne&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Chenna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 12:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935744#M96731</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-29T12:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935789#M96738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476799" data-lia-user-login="NikhilChenna" class="lia-mention lia-mention-user"&gt;NikhilChenna&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;The fact is that I want the same output. I can have the table in 2 different types as I shown.&lt;BR /&gt;Let's take the second.&amp;nbsp;&lt;BR /&gt;For Subject 1 I want the output 1 cause it needs to count only one name within the state 2 or 3. Only the first name ABC has the valid state for me . The rest of them have invalid states for me (not 2 or 3).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If we look into the C subject it has 4 names and there it need to count 2 because even if I have 1 name that appears 2 or multiple times with valid state (2 or 3), it need to count only 1 single time that name. So ABD-2 ABD-3 ABD-4 counts 1 time and PRO-2 counts 1 time so COUNT=2 (Out of 4 names, 3 have a valid state but one name with valid state that has the same value with another one with different or even same state need to count 1 not 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it is more clear!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 12:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935789#M96738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935930#M96750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you are looking for a output like this below, then follow the below steps.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;1. you have to make a calculated column in the table , using the below dax.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Check = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[State]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;'Table (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[State]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2. After that you have to create a new table from your table, go to report view, click on the modelling tab from the above ribbion, click on the new table icon. after that use the below dax to create a summarize table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table 2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table (2)',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table (2)'[Subject],'Table (2)'[Name],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"MAX check"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table (2)'[Check])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which will give you the output as shown in the above screen shot.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Nikhil Chenna&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 13:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2935930#M96750</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-29T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936212#M96785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476799" data-lia-user-login="NikhilChenna" class="lia-mention lia-mention-user"&gt;NikhilChenna&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Not really. I want the output to be like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To have in the column output the count for the whole Subject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:53:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936212#M96785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936233#M96787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me the condition for the Output column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Chenna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936233#M96787</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-29T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936250#M96791</link>
      <description>&lt;P&gt;As I told you earlier, the ouput column counts within a subject, how many name in the states of 2 or 3 are. Example : I have subject A with ABC-1 ABC-2 ABC-3 FEG-2 FEG-3 PRO-3 PRO-5. THe output column will count ABC one time, FEG one time &amp;amp; PRo 1 time, some the ouput will be 3 . Explenation is: It counts ABC one time cause even there are 2 ABC in my valid states, because it is the same name I want only 1 count not 2., same fot the others.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:05:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936250#M96791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936262#M96795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per my previous solution it will work ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Type2:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Subject&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;State&lt;/TD&gt;&lt;TD&gt;Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;EFG&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;PRO&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;ABD&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;PRO&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2 - same output as the other for this subject&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So by this you wanted to calculate the count of ABC as 1, ABD as 1 and PRO as 1 as they are in 2 and 3 state. So below screenshot shows that only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are looking for a output like this below, then follow the below steps.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. you have to make a calculated column in the table , using the below dax.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Check =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[State]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;||&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Table (2)'&lt;/SPAN&gt;&lt;SPAN&gt;[State]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2. After that you have to create a new table from your table, go to report view, click on the modelling tab from the above ribbion, click on the new table icon. after that use the below dax to create a summarize table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table 2 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table (2)',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table (2)'[Subject],'Table (2)'[Name],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"MAX check"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table (2)'[Check])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which will give you the output as shown in the above screen shot.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Nikhil Chenna&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:11:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936262#M96795</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-29T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936275#M96799</link>
      <description>&lt;P&gt;So, I think I am not making myself very clear. I want the total count for that subkect to be displayed near it. Not only 1 or 0 cause it does not help me. This is a previous step of want I want to do further, for a filtering for Single or Multiple (Single= only one distinct name in the 2 or 3 status, Multiple= more than 1 distinct names in status 2 or 3)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:19:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2936275#M96799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help comparing rows and after that counting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2939383#M97024</link>
      <description>&lt;P&gt;I managed to solve my problem using the method of the accepted solution in &lt;A href="https://community.powerbi.com/t5/Desktop/Count-based-on-another-column/m-p/422792/highlight/true#M194426" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;. Just added one more filtering to the calculate.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:25:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-comparing-rows-and-after-that-counting/m-p/2939383#M97024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-30T15:25:28Z</dc:date>
    </item>
  </channel>
</rss>

