Forum Discussion
robertocarlos
9 years agoNew Member
dynamic rolling date (last 7 days)
I am simply trying to put a dynamic date filter to show me a filtered result of this table of the last 7 days (Test Date) everytime this report is opened. ...
- 9 years ago
Hey Robertocarlos,
My apologies, I had the less than symbol backwards. It should be <=7 instead of >=7.
Use that calculated column and place it as a page-level filter with it's value set to 'Yes'. This should filter out everything except rows where the Date Column is in the last 7 days.
th3h0bb5
9 years agoResolver II
Use the DATEDIFF function and an IF statement. This will give you a "Yes" if the date is within the last seven days and a "No" otherwise.
lastSeven = IF(DATEDIFF([Date],TODAY(),DAY)>=7, "Yes", "No")