<?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 Allexcept - Remove slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120826#M163602</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date slicer (&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&amp;nbsp;and a country slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following DAX Measure, for which I want to remove all filters, except the date slicer.&lt;/P&gt;&lt;P&gt;I tried with ALLEXCEPT, but somehow it doens't remove the country slicer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count APF Status_Site_AT Filter =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'lead'&lt;/SPAN&gt;&lt;SPAN&gt;[Status 2]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'lead'&lt;/SPAN&gt;&lt;SPAN&gt;[Country construction site]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Österreich"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&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;Any ideas on that?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm thankful for help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 Aug 2024 13:23:27 GMT</pubDate>
    <dc:creator>cn4422</dc:creator>
    <dc:date>2024-08-27T13:23:27Z</dc:date>
    <item>
      <title>Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120826#M163602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date slicer (&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&amp;nbsp;and a country slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following DAX Measure, for which I want to remove all filters, except the date slicer.&lt;/P&gt;&lt;P&gt;I tried with ALLEXCEPT, but somehow it doens't remove the country slicer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count APF Status_Site_AT Filter =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'lead'&lt;/SPAN&gt;&lt;SPAN&gt;[Status 2]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'lead'&lt;/SPAN&gt;&lt;SPAN&gt;[Country construction site]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Österreich"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&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;Any ideas on that?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm thankful for help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120826#M163602</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-08-27T13:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120880#M163604</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Try This&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Count APF Status_Site_AT Filter =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'lead'&lt;/SPAN&gt;&lt;SPAN&gt;[Status 2]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'lead'&lt;/SPAN&gt;&lt;SPAN&gt;[Country construction site]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Österreich"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Datum)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]=selectedvalue(Datum,[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:49:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120880#M163604</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-08-27T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120923#M163606</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to change the last line of the code slightly, because of an error message:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&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;Datum&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;selectedvalue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Datum&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Now the error message is gone, but unfortunately the value = empty.&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;</description>
      <pubDate>Tue, 27 Aug 2024 14:09:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4120923#M163606</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-08-27T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4121004#M163609</link>
      <description>&lt;P&gt;Plz share sample data&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 15:02:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4121004#M163609</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-08-27T15:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4121080#M163614</link>
      <description>&lt;LI-CODE lang="markup"&gt;Count APF Status_Site_AT Filter =
CALCULATE(COUNT('lead'[Status 2]),
  ALL(),
  'lead'[Country construction site]="Österreich",
  VALUES(Datum[Date]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Aug 2024 15:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4121080#M163614</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-08-27T15:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4122720#M163687</link>
      <description>&lt;P&gt;Thanks, that worked like a charm!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 12:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4122720#M163687</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-08-28T12:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4122724#M163688</link>
      <description>&lt;P&gt;Thanks for your help, much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 12:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4122724#M163688</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-08-28T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4122778#M163690</link>
      <description>&lt;P&gt;I just found out that it works almost perfectly... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One thing I noticed is that it puts the grand total into all cells and not for every category the correct sum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how to fix that?&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;</description>
      <pubDate>Wed, 28 Aug 2024 12:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4122778#M163690</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-08-28T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4123218#M163721</link>
      <description>&lt;P&gt;Well, the question was to remove&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; filters, and there is no real difference between row/column context and filter context.&lt;BR /&gt;There are two ways of fixing this&lt;BR /&gt;1) expand the current measure. The current measure uses ALL() to remove all filters, and then VALUES(Datum[Date]) to re-apply the dates in the active context. You can simply add that column in there (example below, adjust if the value is not from that table, but from a dimension table).&lt;BR /&gt;2) Alternatively, do not use ALL() but expand the context only for the slicers/filters you want overriden.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count APF Status_Site_AT Filter =
CALCULATE(COUNT('lead'[Status 2]),
  ALL(),
  'lead'[Country construction site]="Österreich",
  VALUES(Datum[Date]),
  VALUES('lead'[Status 2])
)

Count APF Status_Site_AT Filter V2=
CALCULATE(COUNT('lead'[Status 2]),
  ALL('lead'[Country construction site]),
  ALL('tableA'[column x]),
  'lead'[Country construction site]="Österreich"
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 16:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4123218#M163721</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-08-28T16:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Allexcept - Remove slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4124429#M163770</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226664" data-lia-user-login="sjoerdvn" class="lia-mention lia-mention-user"&gt;sjoerdvn&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Well, the question was to remove&amp;nbsp;&lt;EM&gt;all filters,&lt;/EM&gt; and there is no real difference between row/column context and filter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You're right of course - sorry, I'm still new to all this and so the "remove all filters" wasn't quite correctly formulated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for clarifying the issue and providing two solutions... I've tried the first one and now it's working just fine!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":ok_hand:"&gt;👌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 07:29:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Allexcept-Remove-slicer/m-p/4124429#M163770</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-08-29T07:29:20Z</dc:date>
    </item>
  </channel>
</rss>

