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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
bell_byloli
Contributor III
Contributor III

how to split a column ?

how to split a column while doing a data load,

the column name "Category"

phone Accessories
Screen Modules
phone Units
charger Modules
No Product Category
charger Units
cable Units

i want to split this column into two, where one column contains only items ending with 'Units'.

Labels (1)
1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Like this?

LOAD

:

if (wildmatch(Category, '*Units'), Category) AS CategoryA,

if (Not wildmatch(Category, '*Units'), Category) AS CategoryB,

:

RESIDENT whatevertable;

Peter

View solution in original post

2 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Like this?

LOAD

:

if (wildmatch(Category, '*Units'), Category) AS CategoryA,

if (Not wildmatch(Category, '*Units'), Category) AS CategoryB,

:

RESIDENT whatevertable;

Peter

nilesh_gangurde
Partner - Specialist
Partner - Specialist

at load time you can create the two more columns

For example:

if (wildmatch(Category,'*Units') , Category,'NULL') as NEW_FIELD

-Nilesh