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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

If Condition

Hello,

   IF(CUSTNAME = 'AMAZON.COM', 'eCom Standard', ORDER_TYPE) ,

      If(CUSTNAME = 'e Supply', 'eCom Standard', ORDER_TYPE) as ORDER_TYPE

Some how only e Supply is falling under eCom Standard, Amazon.com is  falling under different order type


how to change the condition so that both customers fall under eCom standard?


Thanks

Labels (1)
1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Or Try like

IF(CUSTNAME = 'AMAZON.COM', 'eCom Standard',

      If(CUSTNAME = 'e Supply', 'eCom Standard', ORDER_TYPE)) as ORDER_TYPE

View solution in original post

2 Replies
vishsaggi
Champion III
Champion III

Try this ?

   IF(Match(CUSTNAME, 'AMAZON.COM', 'e Supply'), 'eCom Standard', ORDER_TYPE)  as ORDER_TYPE

vishsaggi
Champion III
Champion III

Or Try like

IF(CUSTNAME = 'AMAZON.COM', 'eCom Standard',

      If(CUSTNAME = 'e Supply', 'eCom Standard', ORDER_TYPE)) as ORDER_TYPE