Forum Discussion

admin_xlsior's avatar
admin_xlsior
Post Prodigy
6 years ago
Solved

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) ...
  • jdbuchanan71's avatar
    jdbuchanan71
    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.