Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Steviem
Contributor II
Contributor II

Changing colors based on customer selection

Hi All,

 

I have a data set of customers that shows if this customer is a (Average, Bad, Below average, Best, Good, immature and worst) in 4 different criteria. All the groupings (Average, Bad, Below average, Best, Good, immature and worst) have a color assigned to it. I want to create a dashboard to show the color for each criteria when the customer is selected without selecting the criteria to change the color. So if i select the customer it should show me that for Criteria 1 he is Best (Green), for criteria 2 he is Below average (Orange) etc. I am using a button to display the color with a if statement.

Thanks in advance

Regards

S

Labels (3)
1 Solution

Accepted Solutions
anat
Master
Master

create master dimension then assign colors for each grade or use pick and match based on the selection like

pick(match(fieldname,'good','bad'),green(),red()))

View solution in original post

3 Replies
anat
Master
Master

create master dimension then assign colors for each grade or use pick and match based on the selection like

pick(match(fieldname,'good','bad'),green(),red()))

Steviem
Contributor II
Contributor II
Author

Thanks, will try and revert back.

Rohan
Specialist
Specialist

Hi Steve,

Whats your criteria ? is it based on some measure or will it be static based on some conditions ? 

If the criteria is static then what @anat suggested will do, Else you will have to use that measure expression with Aggr & create the master dimension. Hope this helps.

 

Regards,

Rohan.