Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Kohli
Creator II
Creator II

convert one column data into two column with help of delimiter

i have data like

Flight code,     

JJ-DL,
IB-UA
LH-UA
BA-UA
LH-AA
AA-UA
QZ-SQ
UA-WS
UA-AI
AA-UA
UA-DY

I want dived it into 

Flight1, flight2

JJ,DL,
IB,UA
LH,UA
BA,UA
LH,AA
AA,UA
QZ,SQ
UA,WS
UA,AI
AA,UA
UA,DY
1 Reply
jaumecf23
Creator III
Creator III

Hi,

Try this:

Table1:

Load*,

SubField([Flight code],'-',1) as Flight1,

SubField([Flight code],'-',2) as Flight2

;

LOAD * INLINE [

Flight code  

JJ-DL

IB-UA

LH-UA

BA-UA

LH-AA

AA-UA

QZ-SQ

UA-WS

UA-AI

AA-UA

UA-DY

];