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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression in Chart depending on columns

I have a Chart that has 4 columns with an expression wich gives the result 'X' or ''(space).

A fourth column has to be marked with an 'X' depending on if some of the four previous

columns has an 'X' or not.

I have tried this expression with rreference to columns name.

=if(([OmsG]='X','X','') or ([ROD]='X','X','') or ([roc]='X','X','') or ([POR]='X','X',''))

If I only use the first if it works but not when I add  or

kindly

Håkan

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

try this Expression (if any of the four columns contain X, Show X, otherwise space

=if(([OmsG]='X' or [ROD]='X' or [roc]='X' or [POR]='X'),'X','')

View solution in original post

1 Reply
Anonymous
Not applicable
Author

try this Expression (if any of the four columns contain X, Show X, otherwise space

=if(([OmsG]='X' or [ROD]='X' or [roc]='X' or [POR]='X'),'X','')