<?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: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/597612#M154639</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24525" data-lia-user-login="huguest" class="lia-mention lia-mention-user"&gt;huguest&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please kindly share your solution so that it can benefit other community members having similar problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yuliana Gu&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 09:47:52 GMT</pubDate>
    <dc:creator>v-yulgu-msft</dc:creator>
    <dc:date>2019-01-09T09:47:52Z</dc:date>
    <item>
      <title>DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595432#M154631</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I have a table that contains 2 types of records (Audits and Observations).&amp;nbsp; I am trying to use a measure to count the total number of Audits records.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;SPAN&gt;DistinctCountAudit_All_Categories = CALCULATE(DISTINCTCOUNT('Audits_and_Obs'[ID]),'Audits_and_Obs'[Type]="Audit",ALL('Audits_and_Obs'[Category]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;I am adding the ALL('Audits_and_Obs'[Category]) to exclude a Visual Level filter that selects a Category that applies to the Observation records only, but it is not working as intended.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;As an example, I know that I&amp;nbsp;have 100 audits for a given month.&amp;nbsp; If I select one of the Categories for the Observations,&amp;nbsp;the number of audit drops to 30.&amp;nbsp; I want that count to remain&amp;nbsp;at 100&amp;nbsp;regardless of the Category selected.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;Any idea what I might be doing wrong?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 18:55:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595432#M154631</guid>
      <dc:creator>huguest</dc:creator>
      <dc:date>2019-01-04T18:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595461#M154632</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24525" data-lia-user-login="huguest" class="lia-mention lia-mention-user"&gt;huguest&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Can you share the pbix? It'd be much easier to see what is going on.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 20:16:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595461#M154632</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-01-04T20:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595463#M154633</link>
      <description>I wish I could but unfortunately, because of confidentiality issues, I cannot share the file :(</description>
      <pubDate>Fri, 04 Jan 2019 20:17:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595463#M154633</guid>
      <dc:creator>huguest</dc:creator>
      <dc:date>2019-01-04T20:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595466#M154634</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24525" data-lia-user-login="huguest" class="lia-mention lia-mention-user"&gt;huguest&lt;/a&gt;&lt;/P&gt;&lt;P&gt;OK, that's going to be&amp;nbsp;hard then.&lt;/P&gt;&lt;P&gt;Is the visual level filter on &lt;STRONG&gt;'Audits_and_Obs'&lt;/STRONG&gt;[Category] as well? Or perhaps a [Category] from another table?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 20:22:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595466#M154634</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-01-04T20:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595481#M154635</link>
      <description>It is on ‘Audits_and_Obs'[Category]. What I find to be strange is that when I select a Category in the filter, the measure value changes but I have no idea based on what. None of the audit rows have a value in the Categiry column, so I have no idea what records it is counting. If I exclude the “ALL” portion of the measure, it returns 0 if I select a Category.</description>
      <pubDate>Fri, 04 Jan 2019 21:03:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595481#M154635</guid>
      <dc:creator>huguest</dc:creator>
      <dc:date>2019-01-04T21:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595486#M154636</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24525" data-lia-user-login="huguest" class="lia-mention lia-mention-user"&gt;huguest&lt;/a&gt;&lt;/P&gt;&lt;P&gt;It's tough to guess what might be going on like this.Could you maybe share a simple pbix with dummy data, to avoid the confidentiality issues, that reproduces the problem?&amp;nbsp; Not sure if that will be worth your while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 21:29:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/595486#M154636</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-01-04T21:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/596038#M154637</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24525" data-lia-user-login="huguest" class="lia-mention lia-mention-user"&gt;huguest&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about:&lt;/P&gt;
&lt;PRE&gt;DistinctCountAudit_All_Categories = CALCULATE(DISTINCTCOUNT('Audits_and_Obs'[ID]),'Audits_and_Obs'[Type]="Audit",&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;ALL('Audits_and_Obs')&lt;/FONT&gt;&lt;/STRONG&gt;)&lt;/PRE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yuliana Gu&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 09:36:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/596038#M154637</guid>
      <dc:creator>v-yulgu-msft</dc:creator>
      <dc:date>2019-01-07T09:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/596126#M154638</link>
      <description>Thank you for all the suggestions. Unfortunately, DistinctCountAudit_All_Categories = CALCULATE(DISTINCTCOUNT('Audits_and_Obs'[ID]),'Audits_and_Obs'[Type]="Audit",ALL('Audits_and_Obs')) did not work either (same output as before). Although I still don't understand why it is behaving that way, I found a solution to my problem. If I select the desired Category value and also select (Blank), I get the desired result.</description>
      <pubDate>Mon, 07 Jan 2019 12:43:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/596126#M154638</guid>
      <dc:creator>huguest</dc:creator>
      <dc:date>2019-01-07T12:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/597612#M154639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24525" data-lia-user-login="huguest" class="lia-mention lia-mention-user"&gt;huguest&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please kindly share your solution so that it can benefit other community members having similar problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yuliana Gu&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:47:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/597612#M154639</guid>
      <dc:creator>v-yulgu-msft</dc:creator>
      <dc:date>2019-01-09T09:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/597680#M154640</link>
      <description>As mentioned in my previous post, my solution is more of a workaround. If I select the desired Category value and also select (Blank), I get the desired result. Thanks to everyone who tried to help!</description>
      <pubDate>Wed, 09 Jan 2019 11:51:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/597680#M154640</guid>
      <dc:creator>huguest</dc:creator>
      <dc:date>2019-01-09T11:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure - CALCULATE DISTINCTCOUNT with ALL not working as intended</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/3989266#M154641</link>
      <description>&lt;P&gt;I have the same problem when I use DISTINCTCOUNT, I don't find the correct values. However, when I use SUM, COUNT, I get the expected result. Were you able to find a solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 17:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-CALCULATE-DISTINCTCOUNT-with-ALL-not-working-as/m-p/3989266#M154641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-12T17:05:31Z</dc:date>
    </item>
  </channel>
</rss>

