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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Prashant_1234
New Member

How to set default date yesterday in slicer of date between and user can be change date

Hi All ,

 

How can we show yesterday date in slicer as default and user can be also change start and end date according to their need.

 

Please help me on this.

 

Example

start date is 3/02/2024  and end date is today

 

need date like this in slicer 4/22/2024 - 4/22/2024

 

 if any one needs to change start and end date then they can make changes as well in slicer

Thanks

P

 

 

1 REPLY 1
lbendlin
Super User
Super User

- create a string representation of your date column, replace yesterday's date with a string "Yesterday"
- sort that new column by the original date column
- add a slicer or visual/page/report level filter
- set the filter to "Yesterday"
- publish the pbix to the workspace/app

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.

Top Solution Authors