Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nisha_rai
Creator II
Creator II

Pivot table total sum not working properly

Hi ,

 

Please help me to resolve the total issue in pivot table, based on the condition I want to show the sum after that in top column wise total .

Eg: if(rangesum(above(total sum(A),0,Rownno(total)))<=Sum(B),Sum(A),0)

result of total is not coming correctly.

please have a loo the screen shot.

As you see the conditional value total is not coming correctly.

PivotPivot

14 Replies
nisha_rai
Creator II
Creator II
Author

Can you help me , how we can calculate the cumulative sum in back end

Channa
Specialist III
Specialist III

HI if you are using oracle try

Over Partition Function

Channa
nisha_rai
Creator II
Creator II
Author

I am not using oracle, I am doing cumulative sum in Qlik Script.
sunny_talwar


@nisha_rai wrote:

Can you help me , how we can calculate the cumulative sum in back end


Sure thing, please provide some sample data and the output column values you expect to see out from it?

nisha_rai
Creator II
Creator II
Author

Hi ,

Please have a look the below sample data

IDDateAmountCumulative Sum1Cumulative Sum2 
11/2/201810100 
21/3/2018203010 
31/4/2018104030 
11/2/201920200 
21/3/201952520 
31/4/2019103525 
11/3/201964135 
21/4/201954641 
31/5/2019105646 
      

 

I want Cumulative Sum1 and Cumulative sum 2 in back end script, in front end it's possible with the help of Above function .please have me to calculate the cumulative sum in back end.

 

Thanks.