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

Section1 and Section2 flag

Hi Friends ,

I have a scenario where i need to divide employees by their job level eg (employee whose designation is Managing director, executive director, vice president will comes under section1 and rest all will come under section 2 ) can some one please help to achieve this , i need to do this in script level .

Thanks,

Manisha P

1 Solution

Accepted Solutions
Yoshidaqlik
Creator II
Creator II

try again without using '[]'

 

if(Match(JobLevel,'Managing Director','Executive Director',
'Vice President')>0,'Senior ', 'Junior ' )as OfficerFlag

 

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng

View solution in original post

6 Replies
Yoshidaqlik
Creator II
Creator II

Hi,

in this case would add more table to script load with your work level per employee

Example:

Table_1:
Load
employee,
etc,
etc,
etc,
From Table_1;

Support_Table:
Load
employee,
job_level
From Support_Table;


 

Hope this helps

 

Regards

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
manishapanda1
Contributor III
Contributor III
Author

Thanks for the response,  i have all the data loaded , i have a field named Job title and under that field i have values  as( Managing director, executive director, vice president,associate,executive ,analyst) i just need a expression in the script like if(Job title= "Managing director, executive director, vice president" then senior  else junior)

 

Yoshidaqlik
Creator II
Creator II

this ?

 

 

 

if(WildMatch([Job title],'Managing director', 'executive director', 'vice president')>0, 'senior','junior')

 

 

 

you can use wildcards too

 

if(WildMatch([Job title],'*director*', '*president*')>0, 'senior','junior')

 

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
manishapanda1
Contributor III
Contributor III
Author

 

I have already wrote this but i am getting only Junior not getting Senior as a result

if(Match(JobLevel,'[Managing Director]','[Executive Director]',
'[Vice President]')>0,'Senior ', 'Junior ' )as OfficerFlag

Yoshidaqlik
Creator II
Creator II

try again without using '[]'

 

if(Match(JobLevel,'Managing Director','Executive Director',
'Vice President')>0,'Senior ', 'Junior ' )as OfficerFlag

 

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
manishapanda1
Contributor III
Contributor III
Author

Thanks  lot it's working now 😊