I am trying to make a pivot table with a running sum for the sales column by category and item. However, using a calculated field formula it keeps accumulating the numbers all the time:
The required behaviour is to keep accumulating every twelve months starting from the start month. For example, if it started in March it should keep accumulating the numbers till next February and reset in March.
Hello @Rainhard, I am thinking since you want to specify the calculation to run for each year that the periodToDateSumOverTime function might be the proper method. I’ll link the QuickSight documentation for it, but I believe this will be the best route to get the value you are looking for. Let me know if this helps!
Hi @DylanM thanks for the suggestion but, it did not work, it just rests if the period is a year and gives wrong numbers if the period is a month. I figured it out by shifting the months through another date axis for partitioning and then hiding it from the table this will require using the addDateTime in the second formula that I mentioned in my main question.