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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
David_K
Creator
Creator

WHERE Statment

Hi All,

Looking for some help around the use of the WHERE statement.

I have an excel data source where I need to excluded some data rows from the load process.  I found a previous thread that helped when using WHERE once, however, I have several data columns that also have data in which needs to be excluded from the load.

I have used the following script:

Where ColumnA <> 'Zebra';

This successfully removed all rows that had Zebra in ColumnA, however when I try to add another clause using OR referring to a different column neither fields work

Where ColumnA <> 'Zebra' or ColumnB <> 'Lion';

I have tried substituting OR for AND, but this changes the way the clause works (at least in my head) as it is looking for data that equals both clauses.

Can anyone give some guidance on this please.

Thanks

David

 

 

Labels (5)
1 Solution

Accepted Solutions
marcus_sommer

You may try it in this way:

Where if(ColumnA = 'Zebra' or ColumnB = 'Lion', 0, 1);

- Marcus

View solution in original post

1 Reply
marcus_sommer

You may try it in this way:

Where if(ColumnA = 'Zebra' or ColumnB = 'Lion', 0, 1);

- Marcus