Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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.