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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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