<?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 Default selection of the most recent date in Power BI slicer after dataset refresh in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3170961#M114290</link>
    <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I've a date dropdown filter (with single selection) and I want to set its default value to the most recent date after every refresh. I've &lt;SPAN class=""&gt;researched&lt;/SPAN&gt; a lot about this but &lt;SPAN class=""&gt;couldn't&lt;/SPAN&gt;&amp;nbsp; find any perfect fit, I've tried below code as well&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Date 2 = IF('Table'[Date] = MAX('Table'[Date]), "Recent Date", FORMAT('Table'[Date], "MM-DD-YYYY"))&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;but the problem is I &lt;/SPAN&gt;&lt;SPAN class=""&gt;don't&lt;/SPAN&gt;&lt;SPAN class=""&gt; want a plan text "Recent Date&lt;/SPAN&gt;&lt;SPAN class=""&gt;",&lt;/SPAN&gt;&lt;SPAN class=""&gt; so I tried to append Recent Date as text along with the text "Recent Date" e.g., "Recent Date 04/04/2023" but in that case after refresh I got 2 values (Previous latest date and the current one after refresh) and so I've to again manually change the date from the dropdown, see below for reference.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;IF('Calender table'[Date] = MAX('Calender table'[Date]),CONCATENATE("Recent Date ", (FORMAT('Calender table'[Date], "MM/DD/YYYY"))),FORMAT('Calender table'[Date], "MM/DD/YYYY"))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If anyone have any solution then please help me out with this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinky&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 12:30:27 GMT</pubDate>
    <dc:creator>D_Khandelwal</dc:creator>
    <dc:date>2023-04-04T12:30:27Z</dc:date>
    <item>
      <title>Default selection of the most recent date in Power BI slicer after dataset refresh</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3170961#M114290</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I've a date dropdown filter (with single selection) and I want to set its default value to the most recent date after every refresh. I've &lt;SPAN class=""&gt;researched&lt;/SPAN&gt; a lot about this but &lt;SPAN class=""&gt;couldn't&lt;/SPAN&gt;&amp;nbsp; find any perfect fit, I've tried below code as well&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Date 2 = IF('Table'[Date] = MAX('Table'[Date]), "Recent Date", FORMAT('Table'[Date], "MM-DD-YYYY"))&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;but the problem is I &lt;/SPAN&gt;&lt;SPAN class=""&gt;don't&lt;/SPAN&gt;&lt;SPAN class=""&gt; want a plan text "Recent Date&lt;/SPAN&gt;&lt;SPAN class=""&gt;",&lt;/SPAN&gt;&lt;SPAN class=""&gt; so I tried to append Recent Date as text along with the text "Recent Date" e.g., "Recent Date 04/04/2023" but in that case after refresh I got 2 values (Previous latest date and the current one after refresh) and so I've to again manually change the date from the dropdown, see below for reference.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;IF('Calender table'[Date] = MAX('Calender table'[Date]),CONCATENATE("Recent Date ", (FORMAT('Calender table'[Date], "MM/DD/YYYY"))),FORMAT('Calender table'[Date], "MM/DD/YYYY"))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If anyone have any solution then please help me out with this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinky&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 12:30:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3170961#M114290</guid>
      <dc:creator>D_Khandelwal</dc:creator>
      <dc:date>2023-04-04T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Default selection of the most recent date in Power BI slicer after dataset refresh</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3171171#M114306</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="540538" data-lia-user-login="D_Khandelwal" class="lia-mention lia-mention-user"&gt;D_Khandelwal&lt;/a&gt; , Because of current limitation of slicer , you have use a column like &lt;/P&gt;
&lt;P&gt;IF('Calender table'[ValuationDate] = MAX('Calender table'[ValuationDate]),"Latest Date ",FORMAT('Calender table'[ValuationDate], "MM/DD/YYYY"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Default Date Today/ This Month / This Year: &lt;A href="https://www.youtube.com/watch?v=hfn05preQYA" target="_blank"&gt;https://www.youtube.com/watch?v=hfn05preQYA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 08:50:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3171171#M114306</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-04-04T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Default selection of the most recent date in Power BI slicer after dataset refresh</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3171225#M114312</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand thats its the limitation but there's no other workaround for this ??&lt;BR /&gt;I go through the blog you shared but as mentined I need to specify the date as well along with the text or else the most recent date should be selected (Without text).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DInky&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 09:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-selection-of-the-most-recent-date-in-Power-BI-slicer/m-p/3171225#M114312</guid>
      <dc:creator>D_Khandelwal</dc:creator>
      <dc:date>2023-04-04T09:10:55Z</dc:date>
    </item>
  </channel>
</rss>

