<?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: Maintaining filter context after applying ALL function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1460522#M27536</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;there is no need for the use of FILTER in this formula, as ALL is more than enough to achieve the result. My immature DAX brain was overcompensating with FILTER when writing this measure.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 10:16:59 GMT</pubDate>
    <dc:creator>sdgiss</dc:creator>
    <dc:date>2020-10-28T10:16:59Z</dc:date>
    <item>
      <title>Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454297#M27352</link>
      <description>&lt;P&gt;&lt;SPAN&gt;First off, let me state that I am very new to DAX. The question I have relates to maintaining filter context after applying the ALL function to create a new measure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new measure identifies the all-time (ALL dDates) best max speed for each bike racer. When reporting daily max speed on a specific date, there are records for those who did not record a value on that date (but did over the previous year). I realize this is probably a simple solution but I am struggling to have both the date filter context in the pivot table and the all-time best measure for only those racers that recorded a max speed on that specific date. I would only like to report an all-time best max speed for those that had a max speed record on a specific date. My pivot table is below with a specific example where Racer 9 &amp;amp; 10 have no data for 10/21 but still show up because they have an all-time max speed. The DAX formulae are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;Max Speed All Dates = CALCULATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;fData[Max&amp;nbsp;Speed]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;ALL&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;dDate&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;dDate[Date]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Max Speed per Racer&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;=&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(fDataReference[Max Speed]),&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(dRacerDetail,dRacerDetail[Racer]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;&lt;!-- EndFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 02:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454297#M27352</guid>
      <dc:creator>sdgiss</dc:creator>
      <dc:date>2020-10-26T02:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454366#M27353</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266864" data-lia-user-login="sdgiss" class="lia-mention lia-mention-user"&gt;sdgiss&lt;/a&gt; , Try like &lt;/P&gt;
&lt;P&gt;Max Speed All Dates = CALCULATE ( MAX ( fData[Max Speed] ), FILTER ( ALL ( dDate ), dDate[Date] ) ,not(isblank(fData[Max Speed] )) )&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 04:11:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454366#M27353</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-26T04:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454375#M27355</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266864" data-lia-user-login="sdgiss" class="lia-mention lia-mention-user"&gt;sdgiss&lt;/a&gt;&amp;nbsp;&amp;nbsp; Hey Mate ,&lt;/P&gt;&lt;P&gt;You can try this .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Max Speed All Dates&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;if(&lt;SPAN&gt;HASONEVALUE(dDate[Date]),&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Keyword"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;fData[Max&amp;nbsp;Speed]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="Keyword"&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Keyword"&gt;ALL&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;dDate&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;,&amp;nbsp;dDate[Date]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;),Blank() )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&lt;BR /&gt;Max Speed per Racer&amp;nbsp;&lt;SPAN class="cf0"&gt;=if(HASONEVALUE(dRacerDetail[Racer]),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(&lt;/SPAN&gt;&lt;SPAN class="cf1"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="cf0"&gt;(fDataReference[Max Speed] ),Blank() )&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Try this and let me know&lt;BR /&gt;You can use this as well.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 04:22:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454375#M27355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-26T04:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454406#M27363</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266864" data-lia-user-login="sdgiss" class="lia-mention lia-mention-user"&gt;sdgiss&lt;/a&gt;&amp;nbsp; just adding a if function in your measure&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Max Speed All Dates = IF([Daily Max],CALCULATE ( MAX ( fData[Max Speed] ), FILTER ( ALL ( dDate ), dDate[Date] ) )))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Oct 2020 05:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454406#M27363</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-10-26T05:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454959#M27377</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;, a quick question please: can you guys shed some light on this expression?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FILTER ( ALL ( dDate ), dDate[Date] )&lt;/LI-CODE&gt;&lt;P&gt;what's the differece between it and&amp;nbsp;&lt;SPAN class="Keyword"&gt;ALL&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;dDate&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)? Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 09:32:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1454959#M27377</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-10-26T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1455970#M27407</link>
      <description>&lt;P&gt;This is the one! Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;!!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 16:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1455970#M27407</guid>
      <dc:creator>sdgiss</dc:creator>
      <dc:date>2020-10-26T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining filter context after applying ALL function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1460522#M27536</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;there is no need for the use of FILTER in this formula, as ALL is more than enough to achieve the result. My immature DAX brain was overcompensating with FILTER when writing this measure.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maintaining-filter-context-after-applying-ALL-function/m-p/1460522#M27536</guid>
      <dc:creator>sdgiss</dc:creator>
      <dc:date>2020-10-28T10:16:59Z</dc:date>
    </item>
  </channel>
</rss>

