Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
CSmith
Contributor III
Contributor III

Calculate totals

I am trying to calculate and display the totals for the 'Not Sold' and 'Sales' columns the same as the 'Total Vol' column in the Total column at the bottom of the report.

Screenshot 2021-02-23 .png

1 Solution

Accepted Solutions
MayilVahanan

HI @CSmith 

For Pivot table, Try like below 

=If(IsNull(RowNo()) or Rowno()=0 , urtotalexpression, uroriginalexpression)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

HI @CSmith 

Can you try with this option in expression tab.

MayilVahanan_0-1614131568305.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CSmith
Contributor III
Contributor III
Author

I am unable reply in the community. But that total mode option is greyed out for me because I am using a pivot table not a straight table. Is there a way to put some code in the expression that will allow the calculation using a pivot table?
Thank you
MayilVahanan

HI @CSmith 

For Pivot table, Try like below 

=If(IsNull(RowNo()) or Rowno()=0 , urtotalexpression, uroriginalexpression)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CSmith
Contributor III
Contributor III
Author

Thank you!!!!! That worked perfectly!!!!!