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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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

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

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(...))