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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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