<?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: Unexpected result when using ALL within CALCULATE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2549951#M72117</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390681" data-lia-user-login="Jake_Neyu" class="lia-mention lia-mention-user"&gt;Jake_Neyu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, modify the formula like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;agent total all =
CALCULATE ( DISTINCTCOUNT ( tms[agent] ), ALL ( tms ) )
&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 09:52:59 GMT</pubDate>
    <dc:creator>v-yanjiang-msft</dc:creator>
    <dc:date>2022-05-31T09:52:59Z</dc:date>
    <item>
      <title>Unexpected result when using ALL within CALCULATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2538184#M71411</link>
      <description>&lt;P&gt;I have 2 measures:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 1: agent total all = &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;tms[agent]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tms[agent]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 2: agent total alls = &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;tms[agent]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tms[agent]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;By logic, the result of Measure 1 should be &amp;gt;= the result of Measure 2 as Measure 1 removes all filters being applied on tms[agent] column while Measure 2 will keep all explicit filters. However, in this case, the result is the complete opposite where result of Measure 1 is less than the result of Measure 2 (see in picture).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2022 08:11:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2538184#M71411</guid>
      <dc:creator>Jake_Neyu</dc:creator>
      <dc:date>2022-05-25T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected result when using ALL within CALCULATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2538298#M71420</link>
      <description>&lt;P&gt;following&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 08:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2538298#M71420</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-25T08:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected result when using ALL within CALCULATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2549951#M72117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390681" data-lia-user-login="Jake_Neyu" class="lia-mention lia-mention-user"&gt;Jake_Neyu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, modify the formula like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;agent total all =
CALCULATE ( DISTINCTCOUNT ( tms[agent] ), ALL ( tms ) )
&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 09:52:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2549951#M72117</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-05-31T09:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected result when using ALL within CALCULATE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2560806#M72842</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390681" data-lia-user-login="Jake_Neyu" class="lia-mention lia-mention-user"&gt;Jake_Neyu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 09:51:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unexpected-result-when-using-ALL-within-CALCULATE/m-p/2560806#M72842</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-06-06T09:51:04Z</dc:date>
    </item>
  </channel>
</rss>

