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

How to apply different filters for different customers

Hello, 

I have following data: customer code, customer name, sales order quantity, sales order date, sales order type.

How can I apply different filters for different customers?

For example: For customer code 123 we need just sales order types x,y,z

                            For all other customers (except customer 123) we need sales order types a,b,c, x,y,z

How can I write this in script?

Thanks in advance

Labels (4)
1 Reply
vinieme12
Champion III
Champion III

 

Load * From SomeSource

Where  (customer='123' and wildmatch(ordertype,'x','y','z')) 

 OR

( customer<>'123' and wildmatch(ordertype,'a','b','c','x','y','z')

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.