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: 
Hoaile_dev
Contributor II
Contributor II

Show or hide "Show totals" on pivot table

Hello,

Do we have any way to Show/hide the Total amount on the dimension of the pivot table.

Example we have 2 dimensions : Profit center and company.

if the profit center P1 have more than one companies ( A,B) => show the total amount.

and if the profit center P2 has only one company A => hide the total amount.

Thanks in advance.

Hoai

 

 

 

1 Solution

Accepted Solutions
GaryGiles
Specialist
Specialist

Try this in your measure field:

if(count({$}distinct Company)>1,sum({$} Amount),'')

View solution in original post

2 Replies
GaryGiles
Specialist
Specialist

Try this in your measure field:

if(count({$}distinct Company)>1,sum({$} Amount),'')

Hoaile_dev
Contributor II
Contributor II
Author

Thanks but that is not I need.