Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sevvalk
Creator
Creator

I want to ask a question about the totals column in the pivot table.

Hello, I added a totals column in the pivot table. And I want to sort by totals column. I also want to make the background of this totals column a different color to further highlight it. I would be happy if you help.

2 Solutions

Accepted Solutions
Rohan
Specialist
Specialist

Hi,

Since, you are adding the Total as a Column, Use SecondaryDimensionality().

 

Regards,
Rohan.

View solution in original post

MatheusC
Specialist II
Specialist II

Hi, @sevvalk 

1 - To classify the totals you will find the solution in this topic
https://community.qlik.com/t5/App-Development/How-to-sort-pivote-table-in-qliksense-on-Total-column/...

2 – To color the column as already informed by @Rohan  use SecondaryDimensionality(),
In the column you want to color the totals, then enter in Background color expression:

if(SecondaryDimensionality()=0,LightGray())


Att, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

5 Replies
Rohan
Specialist
Specialist

Hi Sevvalk,

Have you added Totals as a Row or Column ? Depending on that use Dimensionality() or SecondaryDimensionality() to colour your required rows like :

for eg - Pick(Dimensionality()+1,Blue(),white())

This will highlight the Total Row as Blue & remaining as white. Try this out & revert if any issues.

 

Regards,

Rohan.

 

sevvalk
Creator
Creator
Author

A

Rohan
Specialist
Specialist

Hi,

Since, you are adding the Total as a Column, Use SecondaryDimensionality().

 

Regards,
Rohan.

MatheusC
Specialist II
Specialist II

Hi, @sevvalk 

1 - To classify the totals you will find the solution in this topic
https://community.qlik.com/t5/App-Development/How-to-sort-pivote-table-in-qliksense-on-Total-column/...

2 – To color the column as already informed by @Rohan  use SecondaryDimensionality(),
In the column you want to color the totals, then enter in Background color expression:

if(SecondaryDimensionality()=0,LightGray())


Att, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
MatheusC
Specialist II
Specialist II

@sevvalk 
Did you find the solution?

Close the thread with the accepted solution and leave a thumbs up if you found it useful

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!