<?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 Summing a Distinct Count in a Matrix Across all Rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3287930#M122301</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478098" data-lia-user-login="Mahesh0016" class="lia-mention lia-mention-user"&gt;Mahesh0016&lt;/a&gt;&amp;nbsp; - thank you so much for answering my question.&amp;nbsp; Unfortunately, that meaure still returns a value of 4 instead of 3.&amp;nbsp; Any ideas?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 13:08:57 GMT</pubDate>
    <dc:creator>DTGPete</dc:creator>
    <dc:date>2023-06-16T13:08:57Z</dc:date>
    <item>
      <title>Need Help Summing a Distinct Count in a Matrix Across all Rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3286824#M122223</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to sum a distinct count of days within a Matrix in Power BI. There are 3 distinct dates (8/1 through 8/3) with a value of 1 for 'Unique Days' across all rows - see image below.&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;When I drill up to the 'Customer Name' I expect the value to sum to 3, as there are 3 distinct dates associated across all rows - see Image below.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula's currently being used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Unique Days&lt;/STRONG&gt; =&lt;BR /&gt;If( DS_main_for_usa[BILLABLE_HOURS] &amp;gt; 0 || DS_main_for_usa[NON_BILLABLE_HOURS] &amp;gt; 0,&lt;BR /&gt;IF (CONTAINSSTRING(DS_main_for_USA[TASK_NAME], "- Canada -"),&lt;BR /&gt;CALCULATE((DISTINCTCOUNT(DS_main_for_usa[CALENDAR_DATE])) )))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Unique Days V2&lt;/STRONG&gt; =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(ADDCOLUMNS(SUMMARIZE(DS_main_for_usa, DS_main_for_usa[ENGAGEMENT_DIVISION_NAME],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DS_main_for_usa[CUSTOMER_NAME],DS_main_for_usa[ENGAGEMENT_NAME],DS_main_for_usa[TASK_NAME],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DS_main_for_usa[ENGAGEMENT_STATUS]),"MAXDays", MAXX(DS_main_for_usa, DS_main_for_usa[Unique Days])),[MAXDays])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help? My formula for Unique Days V2 is returning 4 and not 3 for some reason.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 23:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3286824#M122223</guid>
      <dc:creator>DTGPete</dc:creator>
      <dc:date>2023-06-15T23:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Summing a Distinct Count in a Matrix Across all Rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3287288#M122245</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383334" data-lia-user-login="DTGPete" class="lia-mention lia-mention-user"&gt;DTGPete&lt;/a&gt;&amp;nbsp; I hope this helps you!! Thank You!!&lt;BR /&gt;Unique Days V2 =&lt;BR /&gt;SUMX (&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;DS_main_for_usa,&lt;BR /&gt;DS_main_for_usa[ENGAGEMENT_DIVISION_NAME],&lt;BR /&gt;DS_main_for_usa[CUSTOMER_NAME],&lt;BR /&gt;DS_main_for_usa[ENGAGEMENT_NAME],&lt;BR /&gt;DS_main_for_usa[TASK_NAME],&lt;BR /&gt;DS_main_for_usa[ENGAGEMENT_STATUS]&lt;BR /&gt;),&lt;BR /&gt;"MAXDays", MAXX ( VALUES ( DS_main_for_usa ), DS_main_for_usa[Unique Days] )&lt;BR /&gt;),&lt;BR /&gt;[MAXDays]&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;##############################&lt;STRONG&gt;ELSE&lt;/STRONG&gt;###############################&lt;/P&gt;&lt;P&gt;Unique Days V2 =&lt;BR /&gt;SUMX (&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;DS_main_for_usa,&lt;BR /&gt;DS_main_for_usa[ENGAGEMENT_DIVISION_NAME],&lt;BR /&gt;DS_main_for_usa[CUSTOMER_NAME],&lt;BR /&gt;DS_main_for_usa[ENGAGEMENT_NAME],&lt;BR /&gt;DS_main_for_usa[TASK_NAME],&lt;BR /&gt;DS_main_for_usa[ENGAGEMENT_STATUS]&lt;BR /&gt;),&lt;BR /&gt;"MAXDays", MAXX ( VALUES ( DS_main_for_usa[Unique Days] ), DS_main_for_usa[Unique Days] )&lt;BR /&gt;),&lt;BR /&gt;[MAXDays]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:11:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3287288#M122245</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-06-16T06:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Summing a Distinct Count in a Matrix Across all Rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3287930#M122301</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="478098" data-lia-user-login="Mahesh0016" class="lia-mention lia-mention-user"&gt;Mahesh0016&lt;/a&gt;&amp;nbsp; - thank you so much for answering my question.&amp;nbsp; Unfortunately, that meaure still returns a value of 4 instead of 3.&amp;nbsp; Any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 13:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3287930#M122301</guid>
      <dc:creator>DTGPete</dc:creator>
      <dc:date>2023-06-16T13:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Summing a Distinct Count in a Matrix Across all Rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3288033#M122308</link>
      <description>&lt;P&gt;Okay I was making this way more complicated than needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following measure solved my issue:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Unique Days = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DS_main_for_usa&lt;/SPAN&gt;&lt;SPAN&gt;[CALENDAR_DATE]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DS_main_for_usa&lt;/SPAN&gt;&lt;SPAN&gt;[UNIQUEDAYS]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:13:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-Summing-a-Distinct-Count-in-a-Matrix-Across-all-Rows/m-p/3288033#M122308</guid>
      <dc:creator>DTGPete</dc:creator>
      <dc:date>2023-06-16T14:13:27Z</dc:date>
    </item>
  </channel>
</rss>

