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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
oseias
Contributor
Contributor

Treemap Color Consistency Problem with Limited Dimensions

I would like to maintain gradient coloring based on the measure in my treemap, even when limiting the number of dimension values. However, the 'Other' block (which aggregates the excess data) appears in gray, breaking the color consistency. Is there a way to apply the same gradient to the 'Other' block as well?

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

Try:

Aggregate the “Other” values manually into a new dimension label (e.g., 'Other (' & Count(...) & ')').

This lets you assign a color expression to the “Other” block just like any other value.

Example:

 
=If(Rank(Sum(Sales)) <= 10, ProductName, 'Other')
Then use a color expression like:

If(ProductName = 'Other', ColorMix1(...), ColorMix1(...))

View solution in original post

1 Reply
robert_mika
Master III
Master III

Try:

Aggregate the “Other” values manually into a new dimension label (e.g., 'Other (' & Count(...) & ')').

This lets you assign a color expression to the “Other” block just like any other value.

Example:

 
=If(Rank(Sum(Sales)) <= 10, ProductName, 'Other')
Then use a color expression like:

If(ProductName = 'Other', ColorMix1(...), ColorMix1(...))