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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
annanirvin
Contributor III
Contributor III

Color in straight table

Hi all.

I have a straight table as seen below. For every row, I would like the text to be green if the value in Ej påbörjade are greater than or equal to the target value in Kvota (i.e. 17 %, 39 % or 44 %) or red if the value is less than the target value. I've tried different solutions but always end up with the text in green since I seem to compare with the total kvota (100 %). Perhaps nested if's in the text color attribute would do it but I don't know how to get it right.

Kvota.JPG

I would really appreciate som help here

Anna

1 Solution

Accepted Solutions
fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

I quick solution.

Hope it helps

Cheers.

View solution in original post

5 Replies
fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

I quick solution.

Hope it helps

Cheers.

annanirvin
Contributor III
Contributor III
Author

Thanks, it all seems right to me but for some reason it don't work.

BalaBhaskar_Qlik

You can use if statements in your background color expression area to set different colors

based on the value within a cell for each of your dimensions and expressions.

Ex: if(Exp1>Expr2, Green(),Red())

fvelascog72
Partner - Specialist
Partner - Specialist

Can you share your app?

annanirvin
Contributor III
Contributor III
Author

Sorry for my late reply. I have managed to solve the problem. It was the format that was wrong in my chart and when I corrected it worked well your proposal. Thank you!