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: 
jim_chan
Specialist
Specialist

How to add custom color on each expression?

Hi guys,

i have created a pivot table. problem is :

i want to add custom background color on the expression, but i don;t know how.

- i have tried background color on in the expression tab - ends up it colored my data instead of the expression title(Cost A - Cost D).

- I have tried custom format cell as well, but i only want Cost A-D in blue and Cost E-G is Green. - ends up all in blue.

So. Pls help! how to custom it?

sample.jpg

Rgds

Jim

1 Solution

Accepted Solutions
Not applicable

Use visual cues property

u can get it

View solution in original post

14 Replies
vishsaggi
Champion III
Champion III

Can you post a sample app or the expression you are using for background color?

Not applicable

hi,

Can u send ur Qvw

varshavig12
Specialist
Specialist

This should work in the background color of your expression:

if(Expression_name='Cost A' or Expression_name='Cost B' , Blue() ,

if(Expression_name='Cost E', red()

))

if not, post a sample.

jim_chan
Specialist
Specialist
Author

ok let me try it out.

jim_chan
Specialist
Specialist
Author

nope. not working. maybe do you have a sample of your solution?

Greg_Williams
Former Employee
Former Employee

There is a color wizard in background color of chart expression. My suggestion, play with it a bit and get use to it. Best practice would be to use variables to control color expressions. Logic can be used to control dimension or value threshold displays. Have a look at https://community.qlikview.com/thread/73570

-gw

Not applicable

Use visual cues property

u can get it

sunny_talwar

You would basically need an expression used under the Background color on the dimension tab. I used the following expression:

=If(WildMatch(Cost, '*A', '*B', '*C', '*D'), LightBlue(),

If(WildMatch(Cost, '*E', '*F', '*G'), LightGreen()))

Capture.PNG

jim_chan
Specialist
Specialist
Author

Hello Sunny ! let me try it out, and will let you know about it