<?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: Lookup date value applied on filter not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373926#M127015</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt; for this info. Didn't know about this. I've managed to find a workaround by summarizing the data into another table and then apply the filters from there.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 10:07:28 GMT</pubDate>
    <dc:creator>meowster</dc:creator>
    <dc:date>2023-08-10T10:07:28Z</dc:date>
    <item>
      <title>Lookup date value applied on filter not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373333#M126979</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a date value from lookup as a variable for a filter but it doesn't seem to work. My DAX formula is shown as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;SelectedSalesDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'DIM_SalesDate'&lt;/SPAN&gt;&lt;SPAN&gt;[Last day of sales month]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'DIM_SalesDate'&lt;/SPAN&gt;&lt;SPAN&gt;[DateText YYYY-MM]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('DIM_SalesDate'[DateText YYYY-MM]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'FACT_Main'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'FACT_Main'[Last day of sales month] &amp;gt;= SelectedSalesDate &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'FACT_Main'[Application Date] &amp;lt;= SelectedSalesDate &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The above DAX does not return any syntax error and returns a blank table instead. Did this happen because the lookup value is not recognised as a date value? How can I fix this? Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Aug 2023 05:26:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373333#M126979</guid>
      <dc:creator>meowster</dc:creator>
      <dc:date>2023-08-10T05:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup date value applied on filter not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373750#M127002</link>
      <description>&lt;P&gt;You can't use SELECTEDVALUE when creating a table. Calculated tables are only calculated during data load or refresh, so they don't pay any attention to slicers or filters. If you need something to react dynamically to filters or slicers you need to do it in a measure.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 08:45:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373750#M127002</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-08-10T08:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup date value applied on filter not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373926#M127015</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt; for this info. Didn't know about this. I've managed to find a workaround by summarizing the data into another table and then apply the filters from there.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 10:07:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookup-date-value-applied-on-filter-not-working/m-p/3373926#M127015</guid>
      <dc:creator>meowster</dc:creator>
      <dc:date>2023-08-10T10:07:28Z</dc:date>
    </item>
  </channel>
</rss>

