Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cumulative Calculation By each Row

Greetings,

I would like to achieve cumulative calculation using pivot table.

Please find attach example(Spread Sheet) and sample model.

18 Replies
Not applicable
Author

Hi Rupert

The calculation does not seem right.

Capture.JPG

for period 1 : Result = 100

2: 100+200-0 =300

3: 300+40 -25 = 315

4: 315+40 -25 = 330

Roop
Specialist
Specialist

The results are the same now except that I have made Exp2 in period 1 set to zero as it does not figure in the calculation.

Not applicable
Author

Hi Rupert

I have checked the attached qv it showing the same result.

It is showing:

Capture4.JPG

It must show

Capture5.JPG

Please assist!!

Roop
Specialist
Specialist

apologies - I did not include the correct application .....

example.png

Not applicable
Author

Hi Rupert

Appreciate your effort.

I can see the Exp1 and Exp2 is not providing the origianl values but the cumulative values.

I would like to see the below:

Capture6.JPG

Please advise if it is possible.

Roop
Specialist
Specialist

Sorted ....

I was showing the YTD values for Exp1 and Exp2. I have left them in the chart as commented out so you can revert to using them if you wish later on.

Not applicable
Author

Hi Rupert

Thanks for your reply!

Exactly the same I was getting.

But the result is not right. Please check the highlighted numbers.

Capture7.JPG

It must show :

Capture6.JPG

If we performing the cumulative calculation on same row then it is not giving correct result.

Please help.

Roop
Specialist
Specialist

example.png

Not applicable
Author

Thanks a Million Rupert.

Much appreciated!