Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

cumulative total issue

Hi All,

      I have a issue to display cumulative sum in pivot table.Now am using the expression as

     if(dimensionality()=0,0,RangeSum(Above(TOTAL Column(1),0,NoOfRows(TOTAL)))).

     Iam not getting the Total Value for columnname Cumulative in the  attached pivot table.So,Kindly all help me to solve this issue.

    

Thanks & Regards

Kartheesan

Labels (1)
2 Replies
swuehl
Champion III
Champion III

In your expression, you are explicitely returning 0 for your total line (dimensionality() = 0).

Instead, try using a sum-of-rows-in-pivot-table expression (check the HELP for more details, there is a whole chapter that covers that).

It would probably look similar to

if(dimensionality()=0,

sum( aggr( YOUREXPRESSIONCOLUMN1, Location, Month) )

RangeSum(Above(TOTAL Column(1),0,NoOfRows(TOTAL)))

)


where you need to replace YOUREXPRESSIONCOLUMN1 with the appropriate expression and double check your aggr() dimension field names.

Not applicable
Author

Hi,

It works fine.The third dimension dragged into vertically alignment.The cumulative total gives correct result.Incase the third dimension dragged into horizontal alignment.The total become 0.

Thanks & Regards

Kartheesan