Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
bhaskar_sm
Partner - Creator III
Partner - Creator III

How to Marge one column values into other column vales within same table

Hi all,

I have a excel sheet that contain “code” and “prevcode” column I want to Marge “prevcode” column values into the “code” column.

please find the attached snap shoot of excel sheet for clear understanding.

ThanksUntitled12.png

1 Solution

Accepted Solutions
swuehl
MVP
MVP

It's not clear to me what you want to achieve.

I assume you want to duplicate the lines, one time with Code, one time with PrecCodes AS Code:

Table:

LOAD

     Prod,

     Type,

     Code,

     /// all other columns EXCEPT PrevCodes

...

FROM ....;

CONCATENATE (Table)

LOAD

     Prod,

     Type,

     PurgeChar(SubField(PrevCodes,'#'),'#') as Code,

     // all other columns EXCEPT Code

...

FROM ...

WHERE len(trim(PrevCodes));

View solution in original post

4 Replies
swuehl
MVP
MVP

It's not clear to me what you want to achieve.

I assume you want to duplicate the lines, one time with Code, one time with PrecCodes AS Code:

Table:

LOAD

     Prod,

     Type,

     Code,

     /// all other columns EXCEPT PrevCodes

...

FROM ....;

CONCATENATE (Table)

LOAD

     Prod,

     Type,

     PurgeChar(SubField(PrevCodes,'#'),'#') as Code,

     // all other columns EXCEPT Code

...

FROM ...

WHERE len(trim(PrevCodes));

bhaskar_sm
Partner - Creator III
Partner - Creator III
Author

Thanks, swuehl

sunny_talwar

If you got the response you were looking for, please close the thread by marking swuehl's response as correct answer

Best,

Sunny

Not applicable

load

type,

code

path of the excel;

concatenate

load

name,

precode as code

path of excel

then automatically it will combine as 1