Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Generating background colours for codes on a straight table

Hi

How do I generate a Background colour for rows on a straight table that were used as a dimension.

Eg.

if(LeaveCode='AA',Green(),

if(LeaveCode='DA',Red(),

if(LeaveCode='PA',Yellow(),

if(LeaveCode='AS',Green(),

if(LeaveCode='DS',Red(),

if(LeaveCode='PS',Yellow(),

if(LeaveCode='PH',Blue()

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

if(LeaveCode='AA',Green(),

if(LeaveCode='DA',Red(),

if(LeaveCode='PA',Yellow(),

if(LeaveCode='AS',Green(),

if(LeaveCode='DS',Red(),

if(LeaveCode='PS',Yellow(),

if(LeaveCode='PH',Blue())))))))

View solution in original post

2 Replies
m_woolf
Master II
Master II

if(LeaveCode='AA',Green(),

if(LeaveCode='DA',Red(),

if(LeaveCode='PA',Yellow(),

if(LeaveCode='AS',Green(),

if(LeaveCode='DS',Red(),

if(LeaveCode='PS',Yellow(),

if(LeaveCode='PH',Blue())))))))

Anonymous
Not applicable
Author

Hi,

Go to the dimension, expand that to find the Background color expression and paste the following:

if(LeaveCode='AA',Green(),

if(LeaveCode='DA',Red(),

if(LeaveCode='PA',Yellow(),

if(LeaveCode='AS',Green(),

if(LeaveCode='DS',Red(),

if(LeaveCode='PS',Yellow(),

if(LeaveCode='PH',Blue())))))))