Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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.