Professional Documents
Culture Documents
D1
D1
D1
Conclusion:
So far we’ve concluded a few ways to create cumulative calculations in both Story
and Modeler.
What is your way of creating cumulative calculations in SAP Analytics Cloud? Share
it in the comments and I will update the article.
Future reads:
Advanced Formulas – How they work: https://blogs.sap.com/2021/05/03/advanced-
formulas-how-they-work/
Step 1: first we need to sum up all quality sold per quarter for three years. We
first created a calculated dimension based on the Date dimension:
Then use “RESULTLOOKUP” function to calculate the summation for each quarter:
Step 2: Create a calculation measure with If statement to calculate the running
total
2. Model Level
2.1 imported model: LOOKUP function in models
You have an imported model
You have a date dimension and would like to calculate the cross-time accumulative
sum
Formulas in the modeler can give the user extensive capability to conduct complex
calculations. With the help of the “LOOKUP” function, it’s easy to calculate
“Previous Year/ X months/X days”. Together with other dynamic time navigation
functions such as “First, Last, Previous, Next, Current”, the customized time
windows for accumulations can be achieved.
Below shows an example of using LOOKUP to calculate the running total of the
previous 12 months.
If you would like to use a non-date dimension to calculate the rolling sum, e.g.,
the rolling sum of all countries, it can also be achieved with ITERATE.