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 condition not working

Hi All,

I am my below mentioned issue from long time but couldnt able to get solution on this.

Pls help me to solve.

Below is my sample data.

Data:

<    

Applicant_IdApplicant_statusStatus_Date_Time
1A07/10/2016 12:00
1B07/10/2016 18:00
1C08/10/2016 13:00
1D08/10/2016 17:00
1E
1F09/10/2016 12:00
1G09/10/2016 15:08
1H09/10/2016 16:00
2A07/10/2016 12:00
2B07/10/2016 18:00
2C
2D08/10/2016 17:00
2E
2F09/10/2016 12:00
2G
2

H

Requirement:

<          

Applicant_idABCDEFGH
1YesYesYesYesNoYesYesYes
2YesYesNoYesNoYesNoNo

I need to show my data in above way.

I am using if but it is not working .

if(Applicant_status='A','Yes','No') .

Can anybody help me with this. This is very urgent .

5 Replies
sunny_talwar

Check this link out:

The Generic Load

Anonymous
Not applicable
Author

If (Applicant_status<>"" and Status_Date_Time="","NO","YES")

rupamjyotidas
Specialist
Specialist

Seems to be working

if(Applicant_status='A','Yes','No') as StatusFlag

Can you provide more explanation on what you are trying to achieve

vcanale
Partner - Creator II
Partner - Creator II

Hi,
Try:

if((Applicant_Id=1 AND Applicant_status<>'' AND Status_Date_Time<>'')

  OR(Applicant_Id=2 AND Applicant_status<>'' AND Status_Date_Time<>''), 'Yes', 'NO')

albertovarela
Partner - Specialist
Partner - Specialist

Please see attached qvw

Capture.PNG