<?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: ALL() does not remove filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3345395#M125595</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88162" data-lia-user-login="jdusek92" class="lia-mention lia-mention-user"&gt;jdusek92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This confusing behaviour is due to auto-exist.&lt;/P&gt;
&lt;P&gt;Check out this article:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-dax-auto-exist/" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-dax-auto-exist/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The solution in this case is to create dimension tables for columns you are filtering on: Potential Rating and Job Level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jul 2023 21:32:53 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2023-07-23T21:32:53Z</dc:date>
    <item>
      <title>ALL() does not remove filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3345341#M125591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following problem. I do not understand the behavior of ALL() in my specific scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I prepared a sample PBIX that demonstrates it. I want the measure to ignore filters in &lt;STRONG&gt;Potential Rating&lt;/STRONG&gt; (and &lt;STRONG&gt;Keep other applied filters&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1uTILa2uxYrp7gTR7ZjnoCfDPA7b_wDnz/view?usp=sharing" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://drive.google.com/file/d/1uTILa2uxYrp7gTR7ZjnoCfDPA7b_wDnz/view?usp=sharing&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as you can see on the picture below, the measure returns 9 if High or Low is filtered, but returns 4 for Medium.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why the ALL(Potential Rating) returns 4 when the correct count after removing filter on Potential Rating is 9?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(My aim is to have a dynamic measure that returns the percentage of selected/filtered ratings out of the grand total, so for this I need the count with filter on Potential Rating removed)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 18:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3345341#M125591</guid>
      <dc:creator>jdusek92</dc:creator>
      <dc:date>2023-07-23T18:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALL() does not remove filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3345395#M125595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88162" data-lia-user-login="jdusek92" class="lia-mention lia-mention-user"&gt;jdusek92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This confusing behaviour is due to auto-exist.&lt;/P&gt;
&lt;P&gt;Check out this article:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-dax-auto-exist/" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-dax-auto-exist/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The solution in this case is to create dimension tables for columns you are filtering on: Potential Rating and Job Level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 21:32:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3345395#M125595</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-07-23T21:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALL() does not remove filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3347245#M125690</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the article, it indeed explains the behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask some more:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Is there some workaround/DAX syntax to make this work with only one flat table? often I create just a quick small reports, so I think for these scenarios it is an unnecessary struggle to create a dimension table for all the filters I might use. Is there some syntax that can make it work on the original data model?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Does Auto-Exist cause problems only with ALL and REMOVEFILTERS, or are there some some other DAX functions where I should be aware of this problems with single talbe models?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 19:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3347245#M125690</guid>
      <dc:creator>jdusek92</dc:creator>
      <dc:date>2023-07-24T19:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALL() does not remove filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3350874#M125822</link>
      <description>&lt;OL&gt;
&lt;LI&gt;That's a great question, and I'm afraid I can't find a workaround (so far). I'll keep trying though. Someone else may be able to suggest something! Since it all relates to how the DAX query handles filters from columns of the same table, it's not an easy one &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;This is the main issue that I'm aware of in terms of DAX calculations, but there could well be others.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you connect Excel and generate the same outputs (with an appropriate PivotTable or cube function and slicers), you end up with the result you expected. I guess this is a "benefit" of the MDX queries generated by Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will have a further play around and see if I can add anything else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 11:27:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3350874#M125822</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-07-26T11:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALL() does not remove filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3353998#M125990</link>
      <description>&lt;P&gt;Hi, thanks for your reply.&lt;/P&gt;&lt;P&gt;I submitted an idea to change this behavior to be less confusing and more friendly towards non professionals&amp;nbsp;who do not know what a "star schema" is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=3f6ad02e-eb2a-ee11-a81c-000d3a0ec312" target="_blank" rel="noopener"&gt;https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=3f6ad02e-eb2a-ee11-a81c-000d3a0ec312&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 19:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-does-not-remove-filter/m-p/3353998#M125990</guid>
      <dc:creator>jdusek92</dc:creator>
      <dc:date>2023-07-27T19:35:47Z</dc:date>
    </item>
  </channel>
</rss>

