Forum Discussion
JLeflaive
2 years agoNew Member
Relative date filter for month to date
I need to have a relative filter for a report that filters for all dates in the current month but excluding anything after yesterday. The Current Month filter does not work because it includes da...
- 2 years ago
Hi JLeflaive ,
Are you using a date table? If so, you can try creating a column like IsYesterdayorBefore and filtering the report or visual on this field where this field is true. Use this filter in conjunction with the relative data slicer.
Something like this:
IsYesterdayorBefore =var YesterdaysDate= TODAY()-1returnIF(Dates[Date]<=YesterdaysDate,True, False)
djurecic
2 years agoSuper User
Hi JLeflaive ,
Are you using a date table? If so, you can try creating a column like IsYesterdayorBefore and filtering the report or visual on this field where this field is true. Use this filter in conjunction with the relative data slicer.
Something like this:
IsYesterdayorBefore =
var YesterdaysDate= TODAY()-1
return
IF(Dates[Date]<=YesterdaysDate,True, False)
JLeflaive
2 years agoNew Member
Thanks, that works!