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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Match and NotMatch not working correctly

HI there,

Please kindly assist with the match and not match function in qlikview script -

IF([ENCOUNTER_TYPE] = 'Inpatient' AND [episode_of_care_type]= '09', 'Others',IF([ENCOUNTER_TYPE] = 'Non-Admitted', 'Non Admitted',
IF([ENCOUNTER_TYPE] = 'Emergency', 'Emergency',
IF(Match([episode_of_care_type], '1','01' ,'5' ,'05'), 'Acute',
IF(Not Match([episode_of_care_type],'1' ,'01','5','05' ,'M','9','09'), 'Sub-Acute','Unknown' ))))) AS [Episode of Care Type Groups]

I am not getting the 'Acute; and 'Sub-Acute' group.

Please kindly assist.

Thanks

 

 

Labels (1)
1 Reply
lironbaram
Partner - Master III
Partner - Master III

You are using two different fields in your expression, so if one of the first two conditions is fulfilled, the latter two wouldn't be relevant.
Maybe you need to create two separate fields.