Forum Discussion
admin_xlsior
6 years agoPost Prodigy
filter date slicer before today
Hi, Is there a way the date in slicer automatically set Max value with today's date, but I do not want to use "Relative date include today" setting, since I still need the null date (1900/01/01) ...
- 6 years ago
If you add a column to your date table like so
DateOffset = DATEDIFF(TODAY(),'Date'[Date],DAY)
That will show 0 on today, -1 for yesterday, etc.
Then you can use this column as a filter on your date slicer and set it to <= 0 OR blank:
I think that will give you what you are looking for.
admin_xlsior
6 years agoPost Prodigy
Yes, the slicer use Date table can be up to year 2154
Anonymous
6 years agoNot applicable
If you are using Power BI Date/Calendar table then change the Date table as below.
DATES =
Var MinDateFact = MIN( FactTable[Date] )
VAR MaxDateFACT = TODAY()-1
RETURN
CALENDAR( MinDateFact, MaxDateFACT ).
and if you use this date column in the slicer, Sliceer will only displat one day before.