I need to get the last year values, I do with periodOverPeriodLastValue function. The issue is coming when I need to add a field that is limiting the scope of dates used in this function, to just the dates of the current year…
I thought to use a sumOver with PRE_AGG and try to calculate the periodOverPeriodLastValue before doing the aggregation with this field, but QuickSight is giviming me error.
Formula: periodOverPeriodLastValue(sumOver({value},[{date limiting to current year}],PRE_AGG), {dates}, DAY, 364)
Because I have a calculated field, that contains the week, month or quarter date… based on what I choose from parameter… and since I cannot format the dates in the calculated field itself, i need to proper format them as “2023-W12” for week, “2023-01” for month and “2023-Q1” for quarter… i do this with other fields and since there is the year, these are limiting the scope
I’m also having this problem. Trying to compare sales of this year with the previous year month by month (but without showing in the table the values of last year in the columns).