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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
brf10043
Creator
Creator

Background color in a Pivot Table

I applied the background color coding below to a dimension in a pivot table.  However, when the dimension is not expanded the color defaults to Green " RGB(69,234,21)".  Is there any way around that happening?  I would prefer that there is no color coding applied until the dimension is expanded.

=If(Only(Priority_Factor) = 'High', RGB(255,0,0),
If(Only( Priority_Factor) = 'Medium', RGB(255,217,47),
RGB(69,234,21)))

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=If(Only(Priority_Factor) = 'High', RGB(255,0,0),
If(Only(Priority_Factor) = 'Medium', RGB(255,217,47),
If(Only(Priority_Factor) = 'Low', RGB
(69,234,21))))

View solution in original post

3 Replies
sunny_talwar

May be this:

=If(Only(Priority_Factor) = 'High', RGB(255,0,0),
If(Only(Priority_Factor) = 'Medium', RGB(255,217,47),
If(Only(Priority_Factor) = 'Low', RGB
(69,234,21))))

rubenmarin

Hi Bobby, maybe it's because there are more than one value for Priority_Factor so it returns Null() and goes to the default, try adding a check for null, ie:

=If(IsNull(Priority_Factor), RGB(255,255,255), //change to standard bg color

If(Only(Priority_Factor) = 'High', RGB(255,0,0),
If(Only( Priority_Factor) = 'Medium', RGB(255,217,47),
RGB(69,234,21)))

brf10043
Creator
Creator
Author

Once again!  Thanks Sunny