<?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: Count based on distinct other column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974647#M154120</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"spefic manually given say only want to show value for A"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think this is the most accurate answer. Basically I want to create a card which represents the counted amount of category A based on the measure above. So the card says as callout value "2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 14:40:35 GMT</pubDate>
    <dc:creator>Carliniiiii</dc:creator>
    <dc:date>2024-06-05T14:40:35Z</dc:date>
    <item>
      <title>Count based on distinct other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974331#M154104</link>
      <description>&lt;P&gt;Hello Power BI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to count the categories in a table per distinct identifier once. I can't remove the duplicates as they contain different data in other columns.&amp;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E&gt;&lt;P&gt;Ideally I can utilize the output directly in a pie chart to show the distribution of the categories whether be it in a measure or a separate column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 12:40:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974331#M154104</guid>
      <dc:creator>Carliniiiii</dc:creator>
      <dc:date>2024-06-05T12:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on distinct other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974429#M154109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="754943" data-lia-user-login="Carliniiiii" class="lia-mention lia-mention-user"&gt;Carliniiiii&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my understanding is correct you want distinct count of identifier for a given category?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it can be direclty also in power in pie chart check below image&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;is identifier in value and take distinct count or you can create measure:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;UniqueCategoryCount =&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;DISTINCTCOUNT&lt;SPAN&gt;('Table'[Identifier ]),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;ALLEXCEPT&lt;SPAN&gt;('Table', 'Table'[Category])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!&lt;BR /&gt;Check for more intersing solution here: &lt;A class="" href="http://www.youtube.com/@Howtosolveprobem" target="_blank" rel="noopener"&gt;www.youtube.com/@Howtosolveprobem&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 13:14:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974429#M154109</guid>
      <dc:creator>qqqqqwwwweeerrr</dc:creator>
      <dc:date>2024-06-05T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on distinct other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974474#M154110</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you for your help. Is there also a way to extract the category amount and represent it in a card? So for instance Title category = A, Amount 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 13:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974474#M154110</guid>
      <dc:creator>Carliniiiii</dc:creator>
      <dc:date>2024-06-05T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on distinct other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974507#M154114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="754943" data-lia-user-login="Carliniiiii" class="lia-mention lia-mention-user"&gt;Carliniiiii&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that answer helps you please mark that as an accpeted solution so other might use if they have similar problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seocnd: when you amount? is the same as count?or what like if category is B then what is expectation other than this do you want to only show A or B reason being Card will only take first value or total value or spefic manually given say only want to show value for A. I might have confused you but can please elobrate your question in detail with expected output and if any condition also want to included.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 13:43:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974507#M154114</guid>
      <dc:creator>qqqqqwwwweeerrr</dc:creator>
      <dc:date>2024-06-05T13:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on distinct other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974647#M154120</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625628" data-lia-user-login="qqqqqwwwweeerrr" class="lia-mention lia-mention-user"&gt;qqqqqwwwweeerrr&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"spefic manually given say only want to show value for A"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think this is the most accurate answer. Basically I want to create a card which represents the counted amount of category A based on the measure above. So the card says as callout value "2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 14:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3974647#M154120</guid>
      <dc:creator>Carliniiiii</dc:creator>
      <dc:date>2024-06-05T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on distinct other column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3975066#M154134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="754943" data-lia-user-login="Carliniiiii" class="lia-mention lia-mention-user"&gt;Carliniiiii&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use this measure&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;UniqueCategoryACount = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Identifier ]),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table'[Category] = &lt;/SPAN&gt;&lt;SPAN&gt;"A"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;let me know if doesnot works&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jun 2024 17:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-distinct-other-column/m-p/3975066#M154134</guid>
      <dc:creator>qqqqqwwwweeerrr</dc:creator>
      <dc:date>2024-06-05T17:24:44Z</dc:date>
    </item>
  </channel>
</rss>

