Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
psk180590
Creator III
Creator III

Ignore with multiple conditions

Hello All,

From my below sample data i need to display only values which are not Total or have Rest in them.

ProductName

AA

AA1

AA3

AA6

RestAA

Total

BZ

BZ1

BZ5

RestBZ

Total

So, from the above fields in would need my output as below

AA1

AA3

AA6

BZ

BZ1

BZ5

I have tried writing as If(ProductName<>Total and left(ProductName,4)=Rest, ProductName). But, this gives me no values.

TIA!!

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try placing single quotes properly like:

If(ProductName<>'Total' and left(ProductName,4)<>'Rest', ProductName)

View solution in original post

3 Replies
Anonymous
Not applicable

Try ProductName<>'Total' and 1-sign(WildMatch(ProductName,'*Rest*'))

tresesco
MVP
MVP

Try placing single quotes properly like:

If(ProductName<>'Total' and left(ProductName,4)<>'Rest', ProductName)

psk180590
Creator III
Creator III
Author

Missed the single quotes. Such small mistakes eat up lot time .

Thanks both for the quick help. Have a nice day a head!!