Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
tomdabek
Contributor III
Contributor III

Qlikview - how to assign background colors in chart?

I am using the background color property to assign colors to known values, but there are dozens of possibilities and i only want to fix the color for a few of them.  The result is that all other values just show up as white.

Background Color property:

if([Name]='Tom',green(),

if([Name]='Bob',blue(),

))

All the other values for Name just show up as white, i just want the default or random colors to be used.

Any ideas?

Thanks

1 Solution

Accepted Solutions
tomdabek
Contributor III
Contributor III
Author

This works

if([Name]<>'Tom',RGB(255 * rand(), 255 * rand(), 255 * rand())

View solution in original post

3 Replies
sergio0592
Specialist III
Specialist III

Hi, try with:

pick(match(Name,'Tom','Bob')+1, white(), green(), blue())

Is it what you're trying to achieve?

tomdabek
Contributor III
Contributor III
Author

This works

if([Name]<>'Tom',RGB(255 * rand(), 255 * rand(), 255 * rand())

tomdabek
Contributor III
Contributor III
Author

No, it left other values gray