Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
fslavov
Contributor
Contributor

If Then Statement in Data Load Editor

I want to be able to create a new field from 2 fields based on certain criteria. For example I have 2 columns below: 

Description| Category
200ABC|A
DEF|A
100GHI|A

If Desription field containts a number then create a new filed (e.g.Description and Category) and combines the number 200 with Category A so output should be 200A 

Labels (2)
1 Reply
MayilVahanan

Hi 

Try like below

LOAD KeepChar(Description, 0123456789)&Category as Category, PurgeChar(Description, 0123456789) as Description INLINE [
Description| Category
200ABC|A
DEF|A
100GHI|A
](delimiter is '|');

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.