Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! 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
Contributor III
Contributor III

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?