Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paul_ripley
Creator III
Creator III

How to conditional formatting with multiple conditions

Hello

I have a table with a variance column which is just the Actual - Budget columns.  I have done a conditional formatting statement which works for the text colour

=IF(([Total actual YTD]-[Budget YTD]) /[Budget YTD] < 0, vGreen, vRed)

But if the income lines are the the other way round the expense lines if a negative income line should be red.  The dimensions are part of a value list so i tried the below but I get errors.  Can you please help

=If(ValueList($(vValueList_FMProfit)) = 'Third-party Fee Income',

 

IF(
([Total actual YTD]-[Budget YTD])


/[Budget YTD] < 0, vGreen, vRed)

,


IF(
([Total actual YTD]-[Budget YTD])


/[Budget YTD] > 0, vGreen, vRed)


)

Labels (2)
1 Reply
Brett_Bleess
Former Employee
Former Employee

Paul, quick question for you, does that variable by chance have a variable in it?  If so, that could be the issue, as nesting variables is not a good idea, as there is no way to know the sequence of what is going to calculate when, so you may get unexpected results from things.  Sorry I am not more help, this will kick things back up, so someone else smarter than I am may see things and have some other suggestions for you.  Might be better if you can attach sample app too, as that generally does help in these situations as folks can play with things directly that way.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.