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
srivallyK_14
Helper I
Helper I

Automating Date Filter

Hello All,
I want the Date slicer for To Date to be default today's date.

This is what I am getting, when I use a slicer for ToDate. Instead I want Today's Date and can be changed if needed.This is what I am getting, when I use a slicer for ToDate. Instead I want Today's Date and can be changed if needed.

I have tried a filter condition (Date Slicer = IF ( 'Calendar'[Date] <= TODAY (), 1, 0 )), which we can see dates till today date. But I also want to see future dates also. Please help me out.

Regards,
Srivally

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @srivallyK_14 

Now when you log out of Power BI and come back to a report, the same items will be selected as when you left.

So for your requirement, it couldn't achieve that set a default value(or today()) for a slicer.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7162004-default-selected-slicer-o...

As a workaround, you could add a filter condition (Date Slicer = IF ( 'Calendar'[Date] <= TODAY (), 1, 0 )) as another slicer.

When you want to see dates till today date. set filter is "1" and when you want to see all the dates just set filter is "All"

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

@srivallyK_14 try using relative date filtering, more info here.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k  I have tried date filter as well, It is not working if we use This year. We can see todays date only if we use Last year. And also we need to change dates to check past, present and future data, which is not possible in relative filter.

Relative This Year.PNGRelative Last Year.PNGRelative Last Year.PNG

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.