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: 
marcorizzo
Contributor III
Contributor III

dynamic subtotal

I've got a very simple pivot table with a grafic classification of the expression "importo totale" with 8 colours. (file trial)

How can I've a sub-total of difference colours ?

fd.jpg

Thanks

2 Replies
marcus_sommer

I suggest you creates within the script an additionally main-category to your sub-category and used then the partial-sum feature from the pivot-table. If this isn't suitable you could also create a Calculated Dimensions.

- Marcus

luciancotea
Specialist
Specialist

You can change the formatting of the cells, depending on the aggregation level, using DIMENSIONALITY() function.

Go to Expressions, expand the expression and change the "Background color" to something like:

=if(Dimensionality() = 1, red(), Blue())