<?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 Optimized when Filtered in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248953#M119810</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="15990" data-lia-user-login="codyraptor" class="lia-mention lia-mention-user"&gt;codyraptor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/analyzing-distinctcount-performance-in-dax/" target="_blank"&gt;Analyzing the performance of DISTINCTCOUNT in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 05:08:27 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-23T05:08:27Z</dc:date>
    <item>
      <title>Distinct Count Optimized when Filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248708#M119796</link>
      <description>&lt;P&gt;I have a simple DAX query counting distinct ID's in a fact table.&amp;nbsp; When I run a simple 'Distinctcount(ID)....I get the answer in 7ms.&amp;nbsp; However...I need to run a distinct count on ID's where fact[column] &amp;lt;&amp;gt; 'XX'.&amp;nbsp; My calculation jumps to 700ms once a filter is applied.&amp;nbsp; I've tried applying the filter on the fact table as well as on the DIM table (1 to many)....but can't seem to optimize and get the initial speed.&amp;nbsp; Any thoughts?&amp;nbsp; I've read the sqlbi paper on distinct count...but I don't see anything specific to applying filters in the calculation.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 01:27:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248708#M119796</guid>
      <dc:creator>codyraptor</dc:creator>
      <dc:date>2023-05-23T01:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Optimized when Filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248853#M119805</link>
      <description>&lt;P&gt;My guess is that the first result is sourcing the answer from metadata. Once you apply a filter, it has to do the actual count. It's only a guess.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 03:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248853#M119805</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2023-05-23T03:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Optimized when Filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248953#M119810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="15990" data-lia-user-login="codyraptor" class="lia-mention lia-mention-user"&gt;codyraptor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/analyzing-distinctcount-performance-in-dax/" target="_blank"&gt;Analyzing the performance of DISTINCTCOUNT in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Optimized-when-Filtered/m-p/3248953#M119810</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-23T05:08:27Z</dc:date>
    </item>
  </channel>
</rss>

