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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LyncoData1
Helper I
Helper I

Default Date in the Slicer

Hello,

 

I am using the Between format for the Date slicer. What I need is to set the end date of the date range to yesterday date, so everytime I open the dashboard ,it shows 1/1/2020 - Yesterday. I would like the slicer to always default from the first of January to yesterday. Please suggest how to achieve this. Thanks.

 

Date Key.PNG

1 ACCEPTED SOLUTION
lkalawski
Resident Rockstar
Resident Rockstar

The best solution would be to create an additional column to check if the date is less than today. If so, show date, if not blank (). And add this new column to the slicer.

to Yesterday Date =
IF ( DATEDIFF ( 'Date'[Date], TODAY (), DAY ) >= 1, 'Date'[Date], BLANK () )

Result:

Ex1.png 

_______

If I helped, please accept the solution and give kudos! 😊

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hi, @LyncoData1 

The selection of the default value of the slicer is not yet supported as below.

47.png


The only effect that can be achieved is what mentioned by @lkalawski  .

45.png

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

You can use relative date filter till yesterday

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here


@amitchandak wrote:

You can use relative date filter till yesterday


lkalawski
Resident Rockstar
Resident Rockstar

The best solution would be to create an additional column to check if the date is less than today. If so, show date, if not blank (). And add this new column to the slicer.

to Yesterday Date =
IF ( DATEDIFF ( 'Date'[Date], TODAY (), DAY ) >= 1, 'Date'[Date], BLANK () )

Result:

Ex1.png 

_______

If I helped, please accept the solution and give kudos! 😊

Anonymous
Not applicable

Hi,

Is there a way to default the from date to Yesterday?

Regards,

Raj

tctrout
Resolver III
Resolver III

Place a filter on that filter visual to be in the last 1 days.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.