Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pennetzdorfer
Creator III
Creator III

Conditional expressions mess up Chart Colors

Hey,

I've a simple bar chart containing 3 expressions. For each of them I need a specific color, which I've defined in the "Colors" tab.

Expression 1 - green

Expression 2 - yellow

Expression 3 - red

Now I set a conditional show statement for expression 1. In case the condition doesn't apply, expression 1 disappears ... so far so good.

But unfortunately the colors for the other expressions change (expression 2 - green,  expression 3 - yellow) ...

Do you have any idea how to keep the predefined colors for each expression?

(I've already checked/unchecked "Persistent Colors" - but it doesn't work in this case)

Thx!

1 Solution

Accepted Solutions
whiteline
Master II
Master II

You can assign colors manualy.

Expand each expression and for Background Color Type:

=color(N)

where N is the number of expression (it's also the number in the color table).

View solution in original post

2 Replies
whiteline
Master II
Master II

You can assign colors manualy.

Expand each expression and for Background Color Type:

=color(N)

where N is the number of expression (it's also the number in the color table).

pennetzdorfer
Creator III
Creator III
Author

Great, thanks a lot!  I didn't know that function