Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional formatting in a straight table

Hi I am new to qlikview and struggling to conditional format the dimension's background in a straight table.

Basically it is text and I want to format it so that for example the text that begins with 1 is highlighted in red, 2 is highlighed in yellow etc..

What I have done is double clicked on the background color and put in a IF statement

=IF (ward ='1*',red(),

if (ward ='2*',yellow() etc

Tried tweaking the If statement in various ways but doesn't seem to be working. Need 7 different colours. Please help if you can.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi

Try this statement

= IF(ward LIKE '1*', red(),

     IF(ward LIKE '2*', yellow() etc..

View solution in original post

2 Replies
Not applicable
Author

Hi

Try this statement

= IF(ward LIKE '1*', red(),

     IF(ward LIKE '2*', yellow() etc..

Not applicable
Author

    Thanks a lot, that worked!