<?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 Distinct Count Based on Multiple Dynamic Column Filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300245#M22500</link>
    <description>&lt;P&gt;I want to create a measure that counts distinct visit days (metric date) per customer that changes based on brand, channel and date filters. This is an example of the table that I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;With the above in mind, if Brand ID = 2 is filtered on report, it should show 2 distinct visit days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Brand = 2 and Channel = 3, it should show 1.&lt;/P&gt;&lt;P&gt;If Customer ID = 1 &amp;amp; 2, it should show 2 visit days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A distinctcount will obviously exclude the same visit day across customers. I don't know how to amend this to get a count of unique metric dates per customer that then also changes depending on brand and channel filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can help that would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 08:45:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-17T08:45:49Z</dc:date>
    <item>
      <title>Distinct Count Based on Multiple Dynamic Column Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300245#M22500</link>
      <description>&lt;P&gt;I want to create a measure that counts distinct visit days (metric date) per customer that changes based on brand, channel and date filters. This is an example of the table that I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;With the above in mind, if Brand ID = 2 is filtered on report, it should show 2 distinct visit days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Brand = 2 and Channel = 3, it should show 1.&lt;/P&gt;&lt;P&gt;If Customer ID = 1 &amp;amp; 2, it should show 2 visit days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A distinctcount will obviously exclude the same visit day across customers. I don't know how to amend this to get a count of unique metric dates per customer that then also changes depending on brand and channel filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can help that would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 08:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300245#M22500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T08:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Based on Multiple Dynamic Column Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300272#M22501</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like can help&lt;/P&gt;
&lt;P&gt;sumx(summarize(Table,Table[Customer ID],Table[Channel],"_1",distinctcount(Table[Date])),[_1])&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 08:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300272#M22501</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-17T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Based on Multiple Dynamic Column Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300463#M22502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this Measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
COUNTROWS(
    SUMMARIZE( 'Table', 'Table'[Customer ID], 'Table'[metric date] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 09:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1300463#M22502</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-08-17T09:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Based on Multiple Dynamic Column Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1301226#M22540</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;this works when filtering on brand and channel but across the entire table, unfiltered, I get too many records. It looks like some dates are being double counted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1301226#M22540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T13:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Based on Multiple Dynamic Column Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1301775#M22558</link>
      <description>&lt;P&gt;Here is an example of some of the data from one customer:&lt;/P&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;Using COUNTROWS(SUMMARIZE('Table', customer_id, metric_date)) works when filtering by brand or channel, however, unfiltered this shows the number of visit days as 5. However, this should show as 4 since there are only 4 unique metric dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calling&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;for a solution on this one (if that's acceptable). Please help&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 16:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1301775#M22558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Based on Multiple Dynamic Column Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1302098#M22572</link>
      <description>Hi there.&lt;BR /&gt;&lt;BR /&gt;The formula COUNTROWS(SUMMARIZE('Table', customer_id, metric_date)) is correct and should show 4 for an unfiltered table. If you get 5, please create a calculated table with the formula SUMMARIZE('Table', customer_id, metric_date) and see what it returns. It should return 4 rows. If it returns 5, as you claim, something's wrong with your data types.</description>
      <pubDate>Mon, 17 Aug 2020 19:47:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Based-on-Multiple-Dynamic-Column-Filters/m-p/1302098#M22572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T19:47:24Z</dc:date>
    </item>
  </channel>
</rss>

