I need to produce the following period definition on Quicksight, using a date filter:
Comparable Period Definition
- If day reporting has been chosen, it should report a day vs the same date last year
- If week reporting has been chosen, it should report the week vs the same week last year
- If month reporting has been chosen, it should report the month vs the same month last year ((or MTD if the date selection is a partial month)
- If year reporting has been chosen, it should report the year vs the previous year (or YTD if the date selection is a partial year)
I implemented the following formula:
periodOverPeriodLastValue(distinct_count({account_name}), createddate, MONTH, 12)
I would like to see a clearer comparison of month versus month. Having a length table as above is difficult to really see the difference. Is there any other way to present the information for period vs last period in QS ?
How can I do the same for day, week, month and year ?
Thanks,