I'm using the Table Filter macro in a dashboard to show dated items from tables on other pages. I want to use the dynamic filter so that the dates of items shown are from two weeks prior to today, through today. Is it possible to set this up so that the filter doesn't have to be updated manually?
Thank you so much. I didn't realise that I could type in "today".
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrey Khaneev _StiltSoft_ Is there an option for previous month? I checked out the link but didn't see that option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andrea Conver ,
It is possbile to set -1m. So it is equal to Feb 17 for today. Is it what you need?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andrey Khaneev _StiltSoft_ ,
That's close, but I don't want the query to be the last 30 days. I'd like the report to always be 1st day of the month to the last day of the previous month. So if I run the report today, I'd like the query to run 2/1-2/28. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not possible to do with the Table Filter macro, but you can use the Table Transformer macro with the following query:
SELECT * FROM T1
WHERE T1.'Date' <= ("monthstart" - "1d") AND T1.'Date' >= (("monthstart" - "1d")::Date->setDate(1))
Here the Date is the name of column with dates to filter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.