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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Vaishali04
Helper III
Helper III

Dynamic default selection in date slicer

Hi All,

 

I am showing latest 30 days in date slicer(selection  between option at UI) and want to keep max date in that 30 day range as deafult selection when a user opens PBI report. 

Has anyone came acroos same scenario?

 

Regards

Vaishali

4 REPLIES 4
Anonymous
Not applicable

Hi @Vaishali04 ,

Everything seems ok on my side ...Did you use TODAY( ) to return the latest value function or write a fixed value?

Could  you share your pbix file?

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Vaishali04 ,

 

Please take a look at this case for reference.

Or you could create a new Date table for Slicer (sort descending )and enable the "Single select" option. So that the latest date value will always be selected.

10.9.7.1.PNG

Then use the following formula and apply it to filter(set as "is 1") like this:

10.9.7.2.PNG

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.

 

Best Regards,
Eyelyn Qin

Hi @Anonymous,

 

with every refresh new data will be there in date slicer. But default selection still be 10/12/2020. With each refersh slicer won't pickup max date as selction. It will be stuch on 10/12/2020.

 

Regards

Vaishali 

amitchandak
Super User
Super User

@Vaishali04 , Best is you use relative date slicer

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Else if you want fix the date , to today, create a column like this in date table. Sort on date and select and save on Today

Date Type = SWITCH(TRUE(),'Date'[Date]=TODAY(),"Today",'Date'[Date]=TODAY()-1,"Yesterday",'Date'[Date]&"")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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