Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

srini
Contributor

Dimension>conditional> Help needed!

Hi There,

Very good Day!

I am trying to get the condition Dimension on the straight table using the below condition 

=IF([FM Name]<>[EM Name],if([Contract Type]='Non perm (T&M)',[Employee Name],if([Contract Type]='Perm',[Resource GCB Grade]>='6',[Employee Name])))

 

I need to display the employee names only it meets the above criteria but I am not getting desired correct result.

 

1 Solution

Accepted Solutions
Channa
Valued Contributor III

Re: Dimension>conditional> Help needed!

=if([FM Name]<>[EM Name] and [Contract Type]='Non perm (T&M)',[Employee Name],if([FM Name]<>[EM Name] and [Contract Type]='Perm',[Resource GCB Grade]>='6',[Employee Name]))

 

try this

Channa
3 Replies
Partner
Partner

Re: Dimension>conditional> Help needed!

Share some sample data and the output you are getting for proper analysis

but from a high level there seems to be some syntax issues. see below in red (replaced , with and)

=IF([FM Name]<>[EM Name],if([Contract Type]='Non perm (T&M)' , [Employee Name],if([Contract Type]='Perm' and [Resource GCB Grade]>='6',[Employee Name])))

srini
Contributor

Re: Dimension>conditional> Help needed!

Hi Dilip, when apply the above mentioned expression it is only showing the result for "PermEmployees". Actual requirement is it has to show all employees in "Non Perm (T&M)"irrespective of grade. and should show the "Perm" with grade greater than 6. This is very sensitive data hence can't be shared :-(. thanks 
Channa
Valued Contributor III

Re: Dimension>conditional> Help needed!

=if([FM Name]<>[EM Name] and [Contract Type]='Non perm (T&M)',[Employee Name],if([FM Name]<>[EM Name] and [Contract Type]='Perm',[Resource GCB Grade]>='6',[Employee Name]))

 

try this

Channa