<?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: Filter date column other table based on max selected date in slicer. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3708537#M144273</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692535" data-lia-user-login="ngdata" class="lia-mention lia-mention-user"&gt;ngdata&lt;/a&gt;&amp;nbsp;Perhaps a Complex Selector like this:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;The Complex Selector - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selector Measure = 
  VAR __Date = MAX('DimDates'[Date])
  VAR __StartDate = MAX('DimStudents'[StartDate])
  VAR __Result = IF( __StartDate &amp;lt;= __Date, 1, 0 )
RETURN
  __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 16:06:36 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2024-02-19T16:06:36Z</dc:date>
    <item>
      <title>Filter date column other table based on max selected date in slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3708414#M144268</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I wonder if anyone could help me please. I have a data model consisting of a student table, transaction table and a dimdates table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The students is connected to the transactions via an ID and the DimDates is connected to the transactions table via date. I also have an inactive relationship between Students[StartDate] and the DimDates[Date] table.&lt;BR /&gt;&lt;BR /&gt;Using a DimDates slicer on the page i want to filter out the list of students in my matrix so that the start date &amp;lt;= MAX selected date of this slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone point me in the right direction please?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Many thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 15:13:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3708414#M144268</guid>
      <dc:creator>ngdata</dc:creator>
      <dc:date>2024-02-19T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter date column other table based on max selected date in slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3708537#M144273</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692535" data-lia-user-login="ngdata" class="lia-mention lia-mention-user"&gt;ngdata&lt;/a&gt;&amp;nbsp;Perhaps a Complex Selector like this:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;The Complex Selector - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Selector Measure = 
  VAR __Date = MAX('DimDates'[Date])
  VAR __StartDate = MAX('DimStudents'[StartDate])
  VAR __Result = IF( __StartDate &amp;lt;= __Date, 1, 0 )
RETURN
  __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 16:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3708537#M144273</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-02-19T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter date column other table based on max selected date in slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3716367#M144653</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692535" data-lia-user-login="ngdata" class="lia-mention lia-mention-user"&gt;ngdata&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created some measures to achieve the effect you are looking for. Following picture shows the effect of the display.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;Measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;getSlicerDate =

VAR _maxDate =

    CALCULATE ( MAX ( DateSlicer[Date] ) )

VAR _getStartDate =

    SELECTEDVALUE ( Student[StartDate] )

RETURN

    IF ( _getStartDate &amp;lt;= _maxDate, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;to&lt;/STRONG&gt; help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 08:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-date-column-other-table-based-on-max-selected-date-in/m-p/3716367#M144653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-22T08:59:28Z</dc:date>
    </item>
  </channel>
</rss>

