Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
everest226
Creator III
Creator III

text color expression

I have following expression. not sure why it has error , result to have red if negative 

 

Sum({< IsPro={'N'} >} [ Sold] ) / Sum({< IsPro={'Y'} >} [Sold] ) - 1 <0,RGB(255,0,0),RGB(0,0,0))

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Did you forget to add the if( at the beginning 🙂

If(Sum({< IsPro={'N'} >} [ Sold] ) / Sum({< IsPro={'Y'} >} [Sold] ) - 1 <0,RGB(255,0,0),RGB(0,0,0))

View solution in original post

1 Reply
sunny_talwar

Did you forget to add the if( at the beginning 🙂

If(Sum({< IsPro={'N'} >} [ Sold] ) / Sum({< IsPro={'Y'} >} [Sold] ) - 1 <0,RGB(255,0,0),RGB(0,0,0))