Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Setting Slicer default value to current year and month

Dear Team,

Is there a way to set default slicer selection as Current Month and Year dynamically.
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.

currently we are able to achieve this default functionality by following the below article, but with hardcoded text like "Default" instead of exact month.
https://gorilla.bi/power-bi/set-default-slicer-value/

But we need exact month<March> and year<2022> as default setting when user logs in.

Kindly suggest a solution for this scenario.

Thanks,
Pallavi_R

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous ,

 

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!

vcazhengmsft_0-1646896802008.png

 

Link of similar idea:

https://ideas.powerbi.com/ideas/idea/?ideaid=39ba67cf-724e-4b6c-9906-51163749f759

 

If there is any post helps, then please consider Accept it as the solution 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!

 

Best Regards,

Community Support Team _ Caiyun

View solution in original post

4 REPLIES 4
powerbi_zone
Frequent Visitor

Its 2024 and things have shuffled a bit .You can use the method shown in this video to achive this easily .

https://youtu.be/o-gr3XgU1mg

 

 

Hi all,

The video above is very good, but hoping someone might know of a way to achieve this natively, without the use of custom visuals?

Basically I have a slicer with the months "Jan, Feb, Mar" etc.  When the current month rolls over (eg becomes April), I want the slicer to automatically select "Apr" and filter the data accordingly.  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.

Kind regards,

Ben.

v-cazheng-msft
Community Support
Community Support

Hi @Anonymous ,

 

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!

vcazhengmsft_0-1646896802008.png

 

Link of similar idea:

https://ideas.powerbi.com/ideas/idea/?ideaid=39ba67cf-724e-4b6c-9906-51163749f759

 

If there is any post helps, then please consider Accept it as the solution 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!

 

Best Regards,

Community Support Team _ Caiyun

amitchandak
Super User
Super User

@Anonymous , As of now, You have to use hard-coded functionality like This month, This Year. You can log an idea

https://ideas.powerbi.com/ideas/

 

Year Type = Switch( True(),
year([Date])= year(Today()),"This Year" ,
year([Date])= year(Today())-1,"Last Year" ,
Format([Date],"YYYY")
)

 

 

Month Type = Switch( True(),
eomonth([Date],0)= today(),"This Month" ,
eomonth([Date],0) = eomonth(Today(),-1),"This Month" ,
Format([Date],"MMM-YYYY")
)

 

Default Date Today/ This Month / This Year: https://www.youtube.com/watch?v=hfn05preQYA

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.