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: 
london1980
Contributor III
Contributor III

Conditional Text Format in Expression

Hi All,

I was wondering if it's possible to add conditional text formatting in and Expression.

Basically I want to make the text colour red if the cell contains one of these two "X:0A" or "D:01".

Thanks

M

1 Solution

Accepted Solutions
idogridish2
Creator III
Creator III

hi london1980

you can use

if(WildMatch(Field,'*X:0A*','*D:01*'),LightRed(),LightGreen())


see the attached


cheers

View solution in original post

4 Replies
luizmendes118
Contributor III
Contributor III

You can click on that plus and use at the text color an if to insert the conditions, like if(Field='X:0A' or Field='D:01',red(),black())

Capturar.PNG

MarcoWedel

please post a sample qvw that you want to test this function with.

thanks

regards

Marco

idogridish2
Creator III
Creator III

hi london1980

you can use

if(WildMatch(Field,'*X:0A*','*D:01*'),LightRed(),LightGreen())


see the attached


cheers

london1980
Contributor III
Contributor III
Author

thank you all, wildmatch did the trick