I need to show analysis through the last complete fiscal week of the year, ignoring everything from the partial current week.
Is is possible to construct a filter that ignores the Max Fiscal_Week value?
I need to show analysis through the last complete fiscal week of the year, ignoring everything from the partial current week.
Is is possible to construct a filter that ignores the Max Fiscal_Week value?
Hi dturner,
To do this you could create a new calculated field to filter out values from the latest week:
ifelse({your date field} < truncDate('WK',maxOver({your date field}, [], PRE_AGG)), {your measure field}, 0)
This breaks down as follows:
maxOver
- finds the latest date in your data set - PRE_AGG
is used as you can’t mix aggregated and none aggregated functions in a calculated fieldtruncdate
- truncates this to the start of the week (Note: in QuickSight the start of the week is Sunday)ifelse
acts as a filter to remove any values in the latest weekAt the start of this year we released a range of of period over period and period to date calculations - depending on your use case some of these might also prove useful. Check out this blog for a walk through of the functions.
Sadly, the Relative Date filter won’t work for me since I need to filter by the company’s Fiscal Week which does not correlate with calendar week.
Thanks for this info. I’ll give this a shot.