<?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: Using ALL to ignore filters- strange results in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/713071#M1111</link>
    <description>&lt;P&gt;You need to use the ALLEXCEPT function in your case.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/allexcept-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/allexcept-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Removes all context filters in the table except filters that have been applied to the specified columns.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 15:40:52 GMT</pubDate>
    <dc:creator>tarunsingla</dc:creator>
    <dc:date>2019-06-12T15:40:52Z</dc:date>
    <item>
      <title>Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/712395#M1093</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a dashboard with slicers on "Order Date" and "Category":&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add 3 cards to the dashboard:&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;The first should ignore ignore all filters.&amp;nbsp;It uses the following Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Grand Total = CALCULATE([Sales Total],ALL(Sales[Customer]),ALL(Sales[OrderDate]),ALL('DATE _TABLE'[YearQuarter]))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second should ignore the "Category" filter, but respect the "Date" filter. It uses the following Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;GrandTot DATES Selection = CALCULATE([Sales Total],ALL(Sales[Category]))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The third should respect the&amp;nbsp;"Date" filter but ignore the&amp;nbsp;"Category" filter.&amp;nbsp;It uses the following Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;GrandTot CATS Selection = CALCULATE([Sales Total],ALL(Sales[OrderDate]),ALL('DATE _TABLE'[YearQuarter]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if I DON'T touch the "Date" slicer, the second card ignores any "category" selections;&lt;/LI&gt;&lt;LI&gt;BUT if I DO change the "Date" slicer the second card DOES repsect the "Category" slicer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example is at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AmxJyApgEAcYgtZqhTkd8PCAT0uJZQ" target="_blank"&gt;https://1drv.ms/u/s!AmxJyApgEAcYgtZqhTkd8PCAT0uJZQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 06:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/712395#M1093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T06:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/712633#M1096</link>
      <description>&lt;P&gt;Just to confirm, we are talking about the &lt;EM&gt;&lt;STRONG&gt;GrandTot DATES Selection = CALCULATE([Sales Total],ALL(Sales[Category]))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just tested by moving the date slicer to 4 Jan 2018 - 5 Jan 2017, the measure returns 13.38K.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Bars' is already selected in the Category slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Sales table, there are two records within the date period selected (I got lucky because one is in 'Bars' and one is in 'Crackers'&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Ok, if the measure was respecting the Category filter, it should return only the 3971.88.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you agree with the test? What results are you getting?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 08:14:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/712633#M1096</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-06-12T08:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/712751#M1101</link>
      <description>&lt;P&gt;Thanks for the rapid reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With your data selections I get the same results as you, which looks fine; however, if I select some different data, I get problems, e.g. if I select only data for January 2019:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I don't select a category, the results are as I expect:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;IfI Select "Bars", the result seems to respect the Category&amp;nbsp; filter, despite the &lt;EM&gt;&lt;STRONG&gt;ALL(Sales[Category]))&lt;/STRONG&gt;&lt;/EM&gt; code:&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;.. but if I select "Crackers" the result makes no sense at all! If Card 2 is respecting the filter I'd expect it to show £1.24K (i.e. £12,448.83)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 09:28:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/712751#M1101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-12T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/713071#M1111</link>
      <description>&lt;P&gt;You need to use the ALLEXCEPT function in your case.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/allexcept-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/allexcept-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Removes all context filters in the table except filters that have been applied to the specified columns.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/713071#M1111</guid>
      <dc:creator>tarunsingla</dc:creator>
      <dc:date>2019-06-12T15:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/713937#M1143</link>
      <description>&lt;P&gt;I've tried every permutation of ALLEXCEPT I can think of, &lt;SPAN&gt;&amp;nbsp;i.e.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1. &lt;STRONG&gt;&lt;EM&gt;GrandTot DATES S1 = CALCULATE([Sales Total],ALLEXCEPT(Sales,Sales[OrderDate]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;GrandTot DATES S2 = CALCULATE([Sales Total],ALLEXCEPT(Sales,'DATE _TABLE'[Date]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;3.&amp;nbsp;GrandTot DATES S3 = CALCULATE([Sales Total],ALLEXCEPT('DATE _TABLE','DATE _TABLE'[Date]))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and tested these out in a new version at&amp;nbsp; &lt;A href="https://1drv.ms/u/s!AmxJyApgEAcYgtZ_SYO2sCOxxabafg" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!AmxJyApgEAcYgtZ_SYO2sCOxxabafg&lt;/A&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Results:.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(a) &lt;U&gt;Base case - no Category filters, dates 4/1/19 to 30/01/19&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S1 &amp;amp; S3 give the correct total. s2 ignores all filters and gives the grand total for the whole table:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(b) &lt;U&gt;Change "Category" filter to "Bars" only&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S1 &amp;amp; S3 calculate a result respecting the "Category" filter, which I don't want it to do!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(c)&amp;nbsp;&lt;U&gt;Change "Category" filter to "Cookies" only&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S3 - same&amp;nbsp;as (b) ; No idea where&amp;nbsp;S1's answer comes from:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;U&gt;&lt;img /&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;SPAN&gt;(d) No Category filters, change Date selection&lt;/SPAN&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get the correct results in S1 &amp;amp; S3:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any ideas/ advice?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jun 2019 09:52:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/713937#M1143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T09:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/714014#M1145</link>
      <description>&lt;P&gt;oldhasbeen,&lt;/P&gt;&lt;P&gt;I've just got back to looking at this and there is definitely an issue.&amp;nbsp; In my opinion there is nothing wrong with the original measure using ALL.&lt;/P&gt;&lt;P&gt;First of all, I think I have a solution to the issue . You have a DATE table in the model so get rid of the Order Date slicer and replace it with a slicer using Date from Date_Table.&amp;nbsp; (This is actually good practice since that is what Date tables are for). This should let the measure start working properly again. Let me know how you get on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the original issue.&amp;nbsp; I don't know if powerbi has always been like that but there is something unintuitive (or buggy) about using 2 slicers on the same table (one should be a date range slicer) along with a measure that uses ALL on the other field in the slicer. I'm going to investigate more but it looks to me that the 2 slicers filter each other but the date range slicer doesn't update to reflect the choice in the other slicer.&amp;nbsp; And the result on the measure does not reflect what's on screen. I'll get back to you on this or attempt to escalate to MS.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 11:36:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/714014#M1145</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-06-13T11:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/714124#M1149</link>
      <description>&lt;P&gt;Hi HotChilli&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks good!Thanks for your time &amp;amp; patience.&lt;/P&gt;&lt;P&gt;My solution is at&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AmxJyApgEAcYgtcGRfnihvxdr4aWIA" target="_blank"&gt;https://1drv.ms/u/s!AmxJyApgEAcYgtcGRfnihvxdr4aWIA&lt;/A&gt;, if you are interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a little surprised at your comment that there is&amp;nbsp; "s&lt;SPAN&gt;omething unintuitive (or buggy) about using 2 slicers on the same table&amp;nbsp;", it's something&amp;nbsp;I've been doing with Excel Pivot Tables for years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 13:31:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/714124#M1149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL to ignore filters- strange results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/714183#M1152</link>
      <description>&lt;P&gt;That's not the whole quote.&lt;/P&gt;&lt;P&gt;In the particular circumstances there does look to be something unintuitive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel is different to powerbi of course.&lt;/P&gt;&lt;P&gt;Visuals affect each other unless 'Edit Interactions' is used&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-to-ignore-filters-strange-results/m-p/714183#M1152</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-06-13T14:17:31Z</dc:date>
    </item>
  </channel>
</rss>

