Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

change color if character length greater than 2

Hello,

I want to make anything thats longer than 2 letters/numbers appear green in my table i have.  How would i go about doing this?

if (Date1 ????(), green(), red())

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi Brandon,

use len to check the length of the value

if(Len(Date1)>2,green(),red())

hope that helps

Joe

View solution in original post

2 Replies
Not applicable
Author

Hi Brandon,

use len to check the length of the value

if(Len(Date1)>2,green(),red())

hope that helps

Joe

rustyfishbones
Master II
Master II

You can try

IF(LEN(Date1) > 2, RGB(0,170,0), RGB(170,0,0))