I am trying to calculate period over period difference of a percentage of total calculated field in a pivot table. It works well in the individual rows but not giving the right result in subtotal and totals. Below are the details of the calculations I’m using :
Welcome to QuickSight Community . And thanks for creating the sample analysis in Arena for us to understand better .
Please use periodOverPeriodPercentDifference function if you want to measure WoW%change like below .
periodOverPeriodPercentDifference(sum(Measure),Week,WEEK,1)
You may refer to this modified Arena sample analysis for your reference . 31730-Community-Question
And please note periodOverPeriodPercentDifference has to be computed separately for each level , since its non-additive measure .
For instance for the week of 4-May-2024 and for A_2
CC1 – WoW%change – 240.78% (20743-6087 ) / 6087
DD1 – WoW%change – 258.72% (2198294-612818 ) / 612818
for A_2 (subtotal) – WoW%change --258.54% (2219037-618905 ) / 618905
Did this solution work for you? I am marking this as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the QuickSight Community Q&A Forum!