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: 
Not applicable

If statment in load script with set value

I want to separate the customers from clients by ActorEmployee_ID. So if a person has a ActorEmployee_ID that is in vSupport it should be a client, else a customer.

Any my script does not work, any ideas?

SET vSupport=('523','2203','1009','2185','2405','2186','1801','509','2202');

If(ActorEmployee_ID=$(vSupport),Client,'Customer') as "Type",

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

if(index('$(vSupport)',ActorEmployee_ID)>0,'Client','Customer') as Type,

View solution in original post

2 Replies
m_woolf
Master II
Master II

if(index('$(vSupport)',ActorEmployee_ID)>0,'Client','Customer') as Type,

Not applicable
Author

Worked as a charm thanks