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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jitpbi
Post Patron
Post Patron

set a default date range in date slicer

 

Hi,

 

I need to set a deafult date range in the slicer where slicer type is between only. Using relative date silcer type is not getting fit into my requirement, so plz dont suggest for relative date.

Is there any possible way to set the yesterday and today date as default range in between type of slicer?

As today is 10/12/2020, so the slicer should take 10/11/2020 and 10/12/2020 for today and tomorrow its default range should be 10/12/2020 and 10/13/2020. the same should be continue forever.

 

Thanks

 

3 REPLIES 3
amitchandak
Super User
Super User

@jitpbi , I do not think there is way for that.

 

They only way is workaround to have a slicer on a column like this

 

Date Type = SWITCH(TRUE(),

'Date'[Date]=TODAY(),"Today & Yesterday",

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

,'Date'[Date]&"")

 

and select Today & Yesterday on LOV.

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

Hi @amitchandak,

 

I need the slicer like below screenshots, bydefaut it should be for 2 days (today and yesterday) , as in left slicer, and user can also select any date range, as in right side slider, if they needed to change the date:

 

jitpbi_0-1602482791173.png

Thanks

Icey
Community Support
Community Support

Hi @jitpbi ,

 

To my knowledge, it is not supported to meet your requirements in Power BI currently.

You can post your idea on Power BI Ideas. It is a place for customers to provide feedback about Power BI.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors