Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

like in qlikview

I have a data like this

knee join

knee pain

knee

knee JT

eye

eye pain

eye damage

eyelid retraction right eye

mouth

abdomen

dysprea

frontal

now i want to get like this ...

like when anywhere where knee  word is found i want to name all these word with knee and when any word start from eye then want to name it eye

and except this all renaming i want to name it "other"

knee joinknee
kneepain                                 knee
Abrasion, left knee, initial encounterknee
knee JTknee
eyeeye
eye paineye
eye damageeye
eyelid retraction right eyeeye
mouthmouth
abdomenother
dyspreaother
frontalother

i tried this

If(WildMatch(col1,'*knee*'),'Kneee',If(WildMatch(col1,'*eye*'),'Eye'))

but this shows only 1 result with eye where as i have 3 records related to eye and knee record is not display..

13 Replies
capriconuser
Creator
Creator
Author

not working just this file

capriconuser
Creator
Creator
Author

what is +1 here?

jayshrinipurte
Partner - Creator
Partner - Creator

Dear Capricorn,

Find the below attachment

Regards,

Jayshri

petter
Partner - Champion III
Partner - Champion III

The addition of one will make sure that if there is no match the 'other' is picked...


WildMatch(Lower(Bodypart),'knee*','eye*','mouth') will return 0 (if not match), 1 for 'knee*' 2 for 'eye*' 3 for 'mouth'

by adding 1 you can cater for no match too in the Pick function....