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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sammy
Contributor
Contributor

Changing color of Expressions

Hi all, 

I'm trying to highlight in a Bar Chart the selected Dimensions.

I'm using the following expression but it only works if only one dimension is selected. How to highlight several selections?

Thanks

if(GetFieldSelections(MyDimension)=MyDimension,Green(),Blue())

 

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi try this one 

 

if(index(GetFieldSelections(myDimension),myDimension)>0, Green(),Blue())

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi try this one 

 

if(index(GetFieldSelections(myDimension),myDimension)>0, Green(),Blue())

CasperQlik
Creator
Creator

This solution works for me when I select MORE than 1 value, however, if I select exactly 1 value then it colors every row. Do you have any advice on how to proceed?