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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

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
MVP
MVP

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))