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

Multiple if for checking conditions

ComplianceApprovalindicatorApproval date
   
N/AYes 
N/AYes 
N/ANO01-01-2019
N/ANO 
N/ANO 

 

IF(Compliance='N/A' AND ApprovalIndicator='true','Approved N/A',
iF(Compliance='N/A'AND ApprovalIndicator='false','Not Approved N/A',


Compliance))) as CalculatedCompliance,

 

In the above table, I have coded the above syntax and works fine, I also have to add one more if in the same loop for the below condition, not able to get the syntax.

iF(Compliance='N/A' AND ApprovalIndicator='false',  and [here i have to check if anything  is entered in this cell it can be date or any string in Approvaldate field  ) 'Approved N/A',

Can anyone help me with syntax, please?? ie

if Compliance =N/A and

ApprovalID=NO and

if any value is present in the Approval date column then it should return 'Approved N/A' (this could be number or string in the cell)

 

 

Labels (1)
1 Reply
micheledenardi
Specialist II
Specialist II

Maybe:

iF(Compliance='N/A' AND Approvalindicator='NO' AND len(trim(ApprovalDate))>0,'Approved N/A','Not Approved N/A')

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.