Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join this live chat April 6, 10AM EST - QlikView to Qlik Sense REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
rtr13
Contributor III
Contributor III

Text Color Expression

Hi Everyone, I am currently trying to add color to one of the rows in my pivot table and everything works except when trying to convert some of the values that sit in as 'TBD' as black, instead they still come in as green. How do I layout my expression that actual percentages still come through as a color and all 'TBD's come in as black? My current expression is below.

=if(percent > 0 ,green(),
     if(percent <= -.05, rgb(255,0,0),
          if(percent >-.05 and percent <= 0,rgb(255,205,3),
              if(percent = 'TBD',black()))))

Thanks!

Labels (2)
1 Solution

Accepted Solutions
bharathadde
Creator II
Creator II

=if(Percent = 'TBD',black(),if(percent > 0 ,green(),
if(percent <= -.05, rgb(255,0,0),
if(percent >-.05 and percent <= 0,rgb(255,205,3),
))))

View solution in original post

1 Reply
bharathadde
Creator II
Creator II

=if(Percent = 'TBD',black(),if(percent > 0 ,green(),
if(percent <= -.05, rgb(255,0,0),
if(percent >-.05 and percent <= 0,rgb(255,205,3),
))))

View solution in original post