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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression colour in straight table

Hi Experts,

Is it possible to colour the expression based on the value of dimensions?

for eg:, my table has Dimension   Field1 : Red, Green, Orange 

                               Expression : count(expression)

i need to give different colurs to the expression value.

if Field1 ='Red', whitecolour for expression, if Field1= 'Orange', blue colour for expression.

is it possible? if so, can someone please help with expression?

1 Solution

Accepted Solutions
sunny_talwar

So changes based on selection in Field1?

May be this?

Count({<Field1>}callsanswered)

Color will change like this:

Pick(Match(Only({<Field1>}Field1), 'Red', 'Orange', 'Green'), White(), Blue(), Green())

View solution in original post

10 Replies
sunny_talwar

I think you sure can...May be like this

Pick(Match(Field1, 'Red', 'Orange', 'Green'), White(), Blue(), Green())

Anil_Babu_Samineni

What do you mean the dimension colors here

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

no sunny its not working

Not applicable
Author

Anil,

i want to give colours to expressions not dimensions

sunny_talwar

Can you show your table how it looks?

Not applicable
Author

sunny, picture attachedCapture.JPG

sunny_talwar

I don't seen any issues

Capture.PNG

Not applicable
Author

Its working sunny.

one more thing, if i select the any value in the 'Field1' in a list box, the value of my expression shouldnt change in this table.

my expression is count(callsanswered). if any calendar selection is made, then it should reflect the change.

can you please help?

sunny_talwar

So changes based on selection in Field1?

May be this?

Count({<Field1>}callsanswered)

Color will change like this:

Pick(Match(Only({<Field1>}Field1), 'Red', 'Orange', 'Green'), White(), Blue(), Green())