<?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: Distinct count vs countrows summarize/group by in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4626459#M177105</link>
    <description>&lt;P&gt;You can try the below, you might get a better query plan. Check the server timings in DAX studio for the various options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sumx(&lt;/P&gt;&lt;P&gt;summarize(&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table,&lt;/P&gt;&lt;P&gt;Table[a],&lt;/P&gt;&lt;P&gt;Table[b],&lt;/P&gt;&lt;P&gt;Table[c],&lt;/P&gt;&lt;P&gt;Table[d]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,1&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 20:25:26 GMT</pubDate>
    <dc:creator>Deku</dc:creator>
    <dc:date>2025-03-26T20:25:26Z</dc:date>
    <item>
      <title>Distinct count vs countrows summarize/group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4625963#M177076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my model i got a column that's 50% of DB, that column was imported from SQL and it's the concatenation of column A, B, C, D (they are all integer).&lt;BR /&gt;I just use that column to get a measure with distinct count.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Instead of import that column, i just import the C and D column (A and B were already imported) with much less cardinality and reduce the size of my model.&lt;BR /&gt;&lt;BR /&gt;And in my new measure i use:&lt;BR /&gt;countrows (Groupby A, B, C, D) instead of distinct count, but this one is a killer performance in DAX, we are talking about a table with 80M.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if that's confused or not.&lt;BR /&gt;Any suggestion or work around?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 13:42:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4625963#M177076</guid>
      <dc:creator>xum</dc:creator>
      <dc:date>2025-03-26T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count vs countrows summarize/group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4626459#M177105</link>
      <description>&lt;P&gt;You can try the below, you might get a better query plan. Check the server timings in DAX studio for the various options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sumx(&lt;/P&gt;&lt;P&gt;summarize(&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table,&lt;/P&gt;&lt;P&gt;Table[a],&lt;/P&gt;&lt;P&gt;Table[b],&lt;/P&gt;&lt;P&gt;Table[c],&lt;/P&gt;&lt;P&gt;Table[d]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,1&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 20:25:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4626459#M177105</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-26T20:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count vs countrows summarize/group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4634971#M177436</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1246197" data-lia-user-login="xum" class="lia-mention lia-mention-user"&gt;xum&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1231947" data-lia-user-login="Deku" class="lia-mention lia-mention-user"&gt;Deku&lt;/a&gt;&amp;nbsp;for Addressing the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.&lt;BR /&gt;If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 11:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4634971#M177436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-02T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count vs countrows summarize/group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4640968#M177699</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1246197" target="_blank"&gt;@xum&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.&lt;BR /&gt;If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 11:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4640968#M177699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-07T11:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count vs countrows summarize/group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4648785#M177955</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1246197" data-lia-user-login="xum" class="lia-mention lia-mention-user"&gt;xum&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if you have gotten this issue resolved?&lt;/P&gt;
&lt;P&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 13:23:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-count-vs-countrows-summarize-group-by/m-p/4648785#M177955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-11T13:23:47Z</dc:date>
    </item>
  </channel>
</rss>

