How would I go about making a search that started ...
# suiteanalytics
d
How would I go about making a search that started on Thursday of every week and ended Wednesday the next week? The report needs to go out daily so I can't use the 7 days ago option and only send on Wednesdays...
s
This might need tweaking, but you could probably use a formula, comparing a date field against: Thursday of this week:
{today} + 5 - to_number(to_char({today}, 'D'))
Wednesday of next week:
{today} + 11 - to_number(to_char({today}, 'D'))
alternatively, you can use
SYSDATE
instead of `{today}`:
SYSDATE + 11 - TO_NUMBER(TO_CHAR(SYSDATE, 'D'))
m
I think SYSDATE will be server timezone and {today} is user's timezone
✔️ 2