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

Font Colour Expression

Good Morning

Please could someone assist me with conditional colour formatting of text within a table.

The columns expression is

round(Sum (totalinvlinevalue*invnewproduct)/Sum (totalinvlinevalue),0.03)

What I require is that if the result is 15% or LESS text to be RED and if not GREEN.

Thank you

Emma

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

IF(NUM(Sum (totalinvlinevalue*invnewproduct)/Sum (totalinvlinevalue),'#0.00%')<='15%', RED(),GREEN())

View solution in original post

9 Replies
settu_periasamy
Master III
Master III

Try like the below screen shot

qvhelp.JPG

MK_QSL
MVP
MVP

IF(NUM(Sum (totalinvlinevalue*invnewproduct)/Sum (totalinvlinevalue),#0.00%)<='15%', RED(),GREEN())

Not applicable
Author

Click on + sign in expressions under chart properties, then in Text Color  update your condition. Something like this if(round(Sum (totalinvlinevalue*invnewproduct)/Sum (totalinvlinevalue),0.03)<=0.15,red(),green())

Not applicable
Author

Manish

I get an error with this as

Bad field name #0.00%

Not applicable
Author

Try '#0.00%' in commas

MK_QSL
MVP
MVP

IF(NUM(Sum (totalinvlinevalue*invnewproduct)/Sum (totalinvlinevalue),'#0.00%')<='15%', RED(),GREEN())

Not applicable
Author

I have tried this and its states expression ok - however all my text is red - even over 15 ?

Not applicable
Author

I  have input as 0.15 and it is working perfectly

THANK YOU TO YOU ALL

Not applicable
Author

thanks for all your help and support