I’m working on a dashboard where I need to calculate a Rolling 12-Month Total. The calculation works perfectly when I display all the months of data. However, when I apply a filter to display only the past 3 months, the rolling sum calculation automatically adjusts to include only those 3 months, instead of the full 12 months.
Example:
Data for Months 1 to 12:
Month 1: 100
Month 2: 100
Month 3: 100
…
Month 12: 100
When I display data for all 12 months, the rolling 12-month total works as expected:
Month 1: 100
Month 2: 200
Month 3: 300
…
Month 12: 1200
However, when I filter the data to only show the past 3 months (e.g., months 10, 11, and 12), the calculation adjusts to only consider those 3 months, which gives me:
Month 10: 100
Month 11: 200
Month 12: 300
I want the calculation to always consider the last 12 months, even when filtering for just the last 3 months. I’m currently using the windowSum function.
Can anyone help me understand how to achieve this in QuickSight? Any advice or suggestions would be appreciated!
Hi @javvajim,
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.