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
Anonymous
Not applicable

Set date filter to always show a certain day

Hi all,

 

Is there a way to have my "date selector" slicer always set to a relative date when someone opens the page? I need the option to select a week of individual dates as you can see below so a standar relative date won't do the job, but I'd love an auto that defaulted to the day before the current date if possible (as we do daily updates).

jme1calff_0-1601462927165.png

 

Kind regards,

 

Jordan 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You have to create a column like this and use

 

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

 

 

sort this on 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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , You have to create a column like this and use

 

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

 

 

sort this on 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
Anonymous
Not applicable

This worked @amitchandak , thank you!

FarhanAhmed
Community Champion
Community Champion

You can create "Current Week" "Current Month" "Current Day" Flags in your Date Dimension that will update on every refresh and use them in slicer instead of Actual Dates.

 

Data should be like 

 

Week1

Week2

Current Week

Week4

.

.

.

Week14

.

.

Week52

 

That will be updated on Next Week and data will be like 

Week1

Week2

Week3

Current Week

.

.

.

Week52

 

A similar thing can be done with Day, Year, Month Quarter etc.

I hope this can help you.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors