Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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'.

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