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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
akhaliq7
Post Prodigy
Post Prodigy

Date slicer (slider) defaults to today

I have a date slicer slider that when I open the report I want to be set for todays date. I also need to be able to change back the date slicer to the full range of dates using the slider. 

If i set it manually then it won't adjust to the current date tomorrow. If i set it as a filter then slider only shows the current date.

2 ACCEPTED SOLUTIONS
truptis
Community Champion
Community Champion

Hi @akhaliq7 ,
Create a measure and put that as a filter.
Step 1: Creating a measure

Measure = if(max(tablename[date] <=today(),1,0)
Step 2: Click on your visual(slicer with the slider date), put a visual level filter where measure = 1

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regards,
TruptiS

View solution in original post

v-shex-msft
Community Support
Community Support

Hi @akhaliq7,

The current power bi slicer does not support the default value.

I’d d like to suggest you add a calculated column to your table to compare the current date value with today function and return tag, then you can set a filter based on this column to filter today values.(the formula will auto-update when the system date changes)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @akhaliq7,

The current power bi slicer does not support the default value.

I’d d like to suggest you add a calculated column to your table to compare the current date value with today function and return tag, then you can set a filter based on this column to filter today values.(the formula will auto-update when the system date changes)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
truptis
Community Champion
Community Champion

Hi @akhaliq7 ,
Create a measure and put that as a filter.
Step 1: Creating a measure

Measure = if(max(tablename[date] <=today(),1,0)
Step 2: Click on your visual(slicer with the slider date), put a visual level filter where measure = 1

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regards,
TruptiS

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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