<?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 Calendar lookup table based on fact table value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2173972#M50543</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272291" data-lia-user-login="EnderWiggin" class="lia-mention lia-mention-user"&gt;EnderWiggin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You would not return anything if you compare &lt;STRONG&gt;Date with MIN('TransactionPast'),[FirstValid]).&amp;nbsp;&lt;/STRONG&gt;If you would to compare Calendar date with minimum date in &lt;SPAN&gt;[FirstValid] column. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure = CALCULATE(MIN('Calendar'[Date]),FILTER('Calendar',[Date]&amp;gt;=&lt;STRONG&gt;MINX(ALL('TransactionPast'),[FirstValid]&lt;/STRONG&gt;)))&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;&lt;SPAN&gt;Best regards&lt;BR /&gt;Paul Zheng _ Community Support Team&lt;BR /&gt;If this post helps, please Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 05 Nov 2021 05:34:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-05T05:34:05Z</dc:date>
    <item>
      <title>Filter Calendar lookup table based on fact table value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2170488#M50389</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to ask your help to find a solution of the following case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to get the minimum Calandar[Date] value which is equal or greater than TransctionPast[FirstValid] date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the relationships:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I created the following measure but it just uses a lot of RAM without any result, when I tried to put it in it in a power pivot's value section&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I think it is caused by the relationship and the filter direction but I can not figure out how to get the required date value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would use it for further calcualtion which will be in the value section of a power pivot.&lt;/P&gt;&lt;P&gt;Could you help me to define the required measure? Please see the sample file on the following link. Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&lt;A title="Power Pivot Sample" href="https://1drv.ms/x/s!As5PJ-AOAlbIhOxdtrOjafUcPpF72A?e=TEFd3I" target="_blank" rel="noopener"&gt;Power Pivot Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2170488#M50389</guid>
      <dc:creator>EnderWiggin</dc:creator>
      <dc:date>2021-11-03T11:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Calendar lookup table based on fact table value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2173972#M50543</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272291" data-lia-user-login="EnderWiggin" class="lia-mention lia-mention-user"&gt;EnderWiggin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You would not return anything if you compare &lt;STRONG&gt;Date with MIN('TransactionPast'),[FirstValid]).&amp;nbsp;&lt;/STRONG&gt;If you would to compare Calendar date with minimum date in &lt;SPAN&gt;[FirstValid] column. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure = CALCULATE(MIN('Calendar'[Date]),FILTER('Calendar',[Date]&amp;gt;=&lt;STRONG&gt;MINX(ALL('TransactionPast'),[FirstValid]&lt;/STRONG&gt;)))&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;&lt;SPAN&gt;Best regards&lt;BR /&gt;Paul Zheng _ Community Support Team&lt;BR /&gt;If this post helps, please Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Nov 2021 05:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2173972#M50543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-05T05:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Calendar lookup table based on fact table value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2174828#M50571</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;, you are right in some cases the&amp;nbsp;'TransactionPast'),[FirstValid]) value was not available becasue of the filter context, so this was the root cause of the high memory usage. Your measure works, so thank you very much&amp;nbsp; for the solution and your response!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 13:38:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Calendar-lookup-table-based-on-fact-table-value/m-p/2174828#M50571</guid>
      <dc:creator>EnderWiggin</dc:creator>
      <dc:date>2021-11-05T13:38:08Z</dc:date>
    </item>
  </channel>
</rss>

