<?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: Setting Slicer default value to current year and month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2380169#M61474</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , As of now, You have to use hard-coded functionality like This month, This Year. You can log an idea &lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;https://ideas.powerbi.com/ideas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year Type = Switch( True(),&lt;BR /&gt;year([Date])= year(Today()),"This Year" ,&lt;BR /&gt;year([Date])= year(Today())-1,"Last Year" ,&lt;BR /&gt;Format([Date],"YYYY")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Month Type = Switch( True(),&lt;BR /&gt;eomonth([Date],0)= today(),"This Month" ,&lt;BR /&gt;eomonth([Date],0) = eomonth(Today(),-1),"This Month" ,&lt;BR /&gt;Format([Date],"MMM-YYYY")&lt;BR /&gt;)&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, 08 Mar 2022 03:21:22 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-08T03:21:22Z</dc:date>
    <item>
      <title>Setting Slicer default value to current year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2379302#M61423</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;Is there a way to set default slicer selection as Current Month and Year dynamically.&lt;BR /&gt;For example, if the current month is march 2022, then slicer should have default selection as 'March' for Calendar Month Slicer and '2022' as Calendar Year Slicer. And in April month, slicer should auto change to 'April' in the month slicer. User should also be able to select rest of the months and past years.&lt;/P&gt;&lt;P&gt;currently we are able to achieve this default functionality by following the below article, but with hardcoded text like "Default" instead of exact month.&lt;BR /&gt;&lt;A href="https://gorilla.bi/power-bi/set-default-slicer-value/" target="_blank"&gt;https://gorilla.bi/power-bi/set-default-slicer-value/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But we need exact month&amp;lt;March&amp;gt; and year&amp;lt;2022&amp;gt; as default setting when user logs in.&lt;/P&gt;&lt;P&gt;Kindly suggest a solution for this scenario.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Pallavi_R&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 17:03:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2379302#M61423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-07T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Slicer default value to current year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2380169#M61474</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , As of now, You have to use hard-coded functionality like This month, This Year. You can log an idea &lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;https://ideas.powerbi.com/ideas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year Type = Switch( True(),&lt;BR /&gt;year([Date])= year(Today()),"This Year" ,&lt;BR /&gt;year([Date])= year(Today())-1,"Last Year" ,&lt;BR /&gt;Format([Date],"YYYY")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Month Type = Switch( True(),&lt;BR /&gt;eomonth([Date],0)= today(),"This Month" ,&lt;BR /&gt;eomonth([Date],0) = eomonth(Today(),-1),"This Month" ,&lt;BR /&gt;Format([Date],"MMM-YYYY")&lt;BR /&gt;)&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, 08 Mar 2022 03:21:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2380169#M61474</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-08T03:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Slicer default value to current year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2385110#M61766</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, please take the solution in the blog you mentioned as a workaround since this feature is still under preview. You could vote for similar idea in Power BI Ideas or add your comments there with more details about your needs. Thanks in advance!&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Link of similar idea:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=39ba67cf-724e-4b6c-9906-51163749f759" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=39ba67cf-724e-4b6c-9906-51163749f759&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:20:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/2385110#M61766</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-03-10T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Slicer default value to current year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/3712783#M144462</link>
      <description>&lt;P&gt;Its 2024 and things have shuffled a bit .You can use the method shown in this video to achive this easily .&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/o-gr3XgU1mg" target="_blank"&gt;https://youtu.be/o-gr3XgU1mg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 02:29:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/3712783#M144462</guid>
      <dc:creator>powerbi_zone</dc:creator>
      <dc:date>2024-02-21T02:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Slicer default value to current year and month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/4595729#M175983</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;The video above is very good, but hoping someone might know of a way to achieve this natively, without the use of custom visuals?&lt;/P&gt;&lt;P&gt;Basically I have a slicer with the months "Jan, Feb, Mar" etc.&amp;nbsp; When the current month rolls over (eg becomes April), I want the slicer to automatically select "Apr" and filter the data accordingly.&amp;nbsp; Currently I have the slicer sorted by the current month, so the current month always appears first in the list, but the slicer always retains the last selected month.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ben.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 00:51:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Slicer-default-value-to-current-year-and-month/m-p/4595729#M175983</guid>
      <dc:creator>bhalicki</dc:creator>
      <dc:date>2025-03-05T00:51:11Z</dc:date>
    </item>
  </channel>
</rss>

