<?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: need to find details related to latest date in Policy based on date selected in the Slicer. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2486171#M68280</link>
    <description>&lt;P&gt;Above code is not working.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 16:25:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-29T16:25:18Z</dc:date>
    <item>
      <title>need to find details related to latest date in Policy based on date selected in the Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2485908#M68255</link>
      <description>&lt;P&gt;Hi Guys, I am facing an issue in getting a solution for finding details related to the latest date in policy based on date range selected using the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date used. -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to get details related to the latest date when the status is "In Progress" for policy x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made a measure flag&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max Flag = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1[Date]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1[Policy]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this is working fine when the complete date range is selected in the slicer means till 5 June 2022 but when I reduce the slicer range it is not giving data corresponding to 1 Feb 2021 the table is getting blank. Instead, it is giving values related to both 1 Feb 2021 and 4 May 2020. I want only value corresponding to 1 Feb 2021 when Slicer is moved to left a little.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want the flag to be dynamic based on slicer range.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am attaching the file PBIX file.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2485908#M68255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-29T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: need to find details related to latest date in Policy based on date selected in the Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2486115#M68274</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;try like&lt;/P&gt;
&lt;P&gt;Max Flag = IF(MAX(Sheet1[Date]) = CALCULATE(MAX(Sheet1[Date]),ALLSELECTED(Sheet1[Policy])),1,0)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max Flag = IF(MAX(Sheet1[Date]) = CALCULATE(MAX(Sheet1[Date]),ALLSELECTED()),1,0)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:55:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2486115#M68274</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-29T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: need to find details related to latest date in Policy based on date selected in the Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2486171#M68280</link>
      <description>&lt;P&gt;Above code is not working.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:25:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2486171#M68280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-29T16:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: need to find details related to latest date in Policy based on date selected in the Slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2492479#M68676</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Modify it.&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;Max Flag = IF(MAX(Sheet1[Date]) = CALCULATE(MAX(Sheet1[Date]),FILTER(ALLSELECTED(Sheet1),[Policy]=MAX('Sheet1'[Policy]))),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-find-details-related-to-latest-date-in-Policy-based-on/m-p/2492479#M68676</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-05-04T06:51:02Z</dc:date>
    </item>
  </channel>
</rss>

