<?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: Complicated Filtering in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3320233#M124249</link>
    <description>&lt;P&gt;Thanks Greg much appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 10:17:21 GMT</pubDate>
    <dc:creator>DominosDave</dc:creator>
    <dc:date>2023-07-07T10:17:21Z</dc:date>
    <item>
      <title>Complicated Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3318827#M124190</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DAX formula that uses the lastdate availabe depending on what filters the user has in place and looks back 12 months but i need it to ignore any start date filters the user may have placed to always get the full 12 months. Can anyone point me in a direction that could acheive this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:22:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3318827#M124190</guid>
      <dc:creator>DominosDave</dc:creator>
      <dc:date>2023-07-06T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3318874#M124194</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585497" data-lia-user-login="DominosDave" class="lia-mention lia-mention-user"&gt;DominosDave&lt;/a&gt;&amp;nbsp;You would need to use ALL to bring all of the dates back into context and then filter from there, something along the lines of:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Full 12 Months = 
  VAR __MaxDate = MAX('Dates'[Date])
  VAR __EOM12M = EOMONTH(__MaxDate, -12)
  VAR __MinDate = DATE( YEAR(__EOM12M), MONTH(__EOM12M), 1)
  VAR __Table = FILTER( ALL('Table'), [Date] &amp;gt;= __MinDate &amp;amp;&amp;amp; [Date] &amp;lt;= __MaxDate )
  VAR __Result = SUMX( __Table, [Value])
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 17:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3318874#M124194</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-07-06T17:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3320233#M124249</link>
      <description>&lt;P&gt;Thanks Greg much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Complicated-Filtering/m-p/3320233#M124249</guid>
      <dc:creator>DominosDave</dc:creator>
      <dc:date>2023-07-07T10:17:21Z</dc:date>
    </item>
  </channel>
</rss>

