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: 
Anonymous
Not applicable

Keep the same color

Hi guys,

I have a pie chart with 3 tags.

I want to click on any of these tags, colors and position don't be changed.

It happened because I use condition with IF.

Could you suggestion how to use the same expression, but use set analysis?

Or other tricks to get it?

Thanks,

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

See if attached is what you want. Used this formula for background expression:

pick(match(only({<VariableName=>}VariableName), 'A', 'B', 'C'), RGB(210,247,130), RGB(247,235,126), RGB(247,165,151))

Hope this helps!

EDIT: You'll need to change your sort expression also to:

match(only({<VariableName=>}VariableName),'A','B','C')

View solution in original post

4 Replies
nizamsha
Specialist II
Specialist II

in color tab check persistent color or in expression tab background write the condition for color

Anonymous
Not applicable
Author

I wrote the condition with IF, it didn't work.

I need also keep for each tag the same color.

jerem1234
Specialist II
Specialist II

See if attached is what you want. Used this formula for background expression:

pick(match(only({<VariableName=>}VariableName), 'A', 'B', 'C'), RGB(210,247,130), RGB(247,235,126), RGB(247,165,151))

Hope this helps!

EDIT: You'll need to change your sort expression also to:

match(only({<VariableName=>}VariableName),'A','B','C')

Anonymous
Not applicable
Author

Thanks. I used the same expression for sort too.