Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Alonal148
Contributor III
Contributor III

Text color expression

Hi,

Plese advice why the follow expression is not correct.

I need to color the text if the measure [Balance High level - trans %] > 0.02.

=IF([Balance High level - trans %]>0.02, Red(),Black())

Than you,

Alona

6 Replies
lorenzoconforti
Specialist II
Specialist II

You are not using any aggregation so, unless [Balance High level - trans %]  is one of your dimensions, it's not likely to work

Try:

=IF(sum([Balance High level - trans %])>0.02, Red(),Black())

Kushal_Chawda

Ideally it should work. Can you provide more details? where you are using this expression?

Alonal148
Contributor III
Contributor III
Author

It is not working
lorenzoconforti
Specialist II
Specialist II

It should work; a couple of things to check

- is [Balance High level - trans %] a measure in the same table you are trying to apply colour to? Can you post a picture of such table to see how it looks like?

- are you certain you are writing exactly the name of the measure/column correctly?

- is  [Balance High level - trans %] a master measure? if that's the case, I don't think it will work

Alonal148
Contributor III
Contributor III
Author

Thank you very much

Alonal148
Contributor III
Contributor III
Author

Thank you very much for your help.

The problem was sloved