Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
bharti
Contributor
Contributor

If -else statement

if(patient_age >= 0 AND patient_age <= 18, '0-18',
if(patient_age >= 19 AND patient_age <= 65, '19-65',
if(patient_age >= 66, '66 above','unknown')
)
)

missing paranthesis error

Labels (1)
1 Reply
Sayed_Mannan
Creator II
Creator II

Hi, I don't find any error in your code, but you can try this 
 
if(patient_age >= 0 AND patient_age <= 18, '0-18',
	if(patient_age >= 19 AND patient_age <= 65, '19-65',
		if(patient_age >= 66, '66 above','unknown')
	)
)