Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
arusanah
Creator II
Creator II

Column Transformation in Qlik sense

Here is sample of my data.  There are two columns. 2nd column has multiple sectionsarusanah_0-1677168600511.png

Second Digit - Type of Facility   Third Digit - Bill Classification 
1 Hospital    Second Digit = 1 (Hospital)
2 Skilled Nursing   1 Inpatient (Including Medicare Part A)
3 Home Health   2 Inpatient (Medicare Part B Only)
4 Religious Non-Medical   3 Outpatient
6 Intermediate Care   4 Laboratory Services Provided to Non-patients
7 Clinic   8 Swing Beds
8 Special Facility or ASC Surgery    
    Second Digit = 2 (Skilled Nursing)
    1 Inpatient (Including Medicare Part A)
    2 Inpatient (Medicare Part B Only)
    3 Outpatient
    8 Swing Beds

 

My requirement is to generate 3rd column based on the values from the First two columns. For e.g. if from first-column value comes to 1 then from the second it falls under the first section then it will check under that section what type of bill it is and generates a code. 

Desired Output : 

arusanah_0-1677169736617.png

 

it looks like I should be using a hierarchy approach, but due to time constraints I'm having a hard time figuring it out, so need expert help.

Your help is much appreciated!

 

Labels (1)
2 Replies
sidhiq91
Specialist II
Specialist II

@arusanah  Could you please provide us actual data how it looks? So that we can help you to resolve your issue.

arusanah
Creator II
Creator II
Author

hello Sidhiq,

I have excel source file like this 

Second Digit - Type of Facility   Third Digit - Bill Classification 
1 Hospital    Second Digit = 1 (Hospital)
2 Skilled Nursing   1 Inpatient (Including Medicare Part A)
3 Home Health   2 Inpatient (Medicare Part B Only)
4 Religious Non-Medical   3 Outpatient
6 Intermediate Care   4 Laboratory Services Provided to Non-patients
7 Clinic   8 Swing Beds
8 Special Facility or ASC Surgery    
    Second Digit = 2 (Skilled Nursing)
    1 Inpatient (Including Medicare Part A)
    2 Inpatient (Medicare Part B Only)
    3 Outpatient
    8 Swing Beds