Forum Discussion
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.
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
- AnonymousNot applicable
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.
- v-lili6-msftCommunity Support
hi, Anonymous
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.
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