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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional colour formating in a Mekko chart

Dear all,

I have a mekko chart, which has a dimension called Hiherarchy2. Hierarchy2 is a subgroup of Hierarchy1.

How can I have the same colour for all Hierarchy2 belonging to the same Hierarchy1?

Attached is a dummy app.

Thank you in advance for your help!

Regards

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes, use for example something like =color(FieldIndex('Hierarchy1' ,Hierarchy1)) as background color expression. If you have a lot of values in Hierarchy1 (you do) you may want to consider creating a table in the script to assign colors to the Hierarchy1 values. See this blog post for more information: Colors in charts


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes, use for example something like =color(FieldIndex('Hierarchy1' ,Hierarchy1)) as background color expression. If you have a lot of values in Hierarchy1 (you do) you may want to consider creating a table in the script to assign colors to the Hierarchy1 values. See this blog post for more information: Colors in charts


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you for the suggestion. Indeed color(fieldindiex ... works magically! But i'll need to create a separate table as there are so many value.

Thank you!