Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pivot - Background Color

Hi All,

Please guide me how to achieve the below one

Chart Type : Pivot

Background condtion : =if(Name='A',Green(),Yellow())

Dimension Background Color is working fine if it is in row format

If we drag ID dimension horizontally the background color is not working

my output should be

Thanks in advance

1 Solution

Accepted Solutions
sunny_talwar

Try unchecking 'Suppress Zero-Values' on the presentation tab and that should fix the issue

View solution in original post

9 Replies
sunny_talwar

Try unchecking 'Suppress Zero-Values' on the presentation tab and that should fix the issue

Anonymous
Not applicable
Author

Thanks Sunny ,

Worked perfectly

Regards,

sam

Anonymous
Not applicable
Author

Hi,

The same scenario above but with different condition

Back ground color condition : =if(sum(Sales) > 200,Green(),Yellow())  working if it is in row format

dragging ID dimension horizontally , back ground color is not working

Thanks in advance

sunny_talwar

Did you uncheck 'Suppress Zero-Values' for this chart?

Anonymous
Not applicable
Author

Hi Sunny,

Yes un checked zero values in presentation tab..

Regards,

sam

sunny_talwar

Would you be able to share a sample to test this out?

Anonymous
Not applicable
Author

Hi Sunny,

Sample Data

LOAD * INLINE [
Name, Id, Sales
A, 1, 100
B, 2, 200
C, 3, 300
]
;

Chart : Pivot

Dimension : Name, ID -> Horizontal

Background Color : Name -> if(sum(Sales) > 200,Green(),Yellow())

Expression : Sum(Sales)

Suppress Zero value - un checked

Regards

Sam

sunny_talwar

Try this:

=If(Aggr(NODISTINCT Sum(Sales), Name) > 200, Green(), Yellow())

Anonymous
Not applicable
Author

Hi Sunny,

Thanks , perfect..

Regards,

Sam