Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple row into single row

Hi All,

I have table like the following :

CustomerIDConnectionCodeKidName1KidName2KidName3
C011Name1

C012-Name2-
C013--Name3
C021Name1--

Is there a way in load script so I can create Table Box like this :

CustomerIDKidName1KidName2KidName3
C01Name1Name2Name3
C02Name1--

Thanks

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

Yes, you can do the following:

     Load CustomerID, KidName1 From ... Where Len(Trim(KidName1))>0 ;

     Join Load CustomerID, KidName2 From ... Where Len(Trim(KidName2))>0 ;

     Join Load CustomerID, KidName3 From ... Where Len(Trim(KidName3))>0 ;

and this will create exactly the table that you want. The problem is however, what you should do with your ConnectionCode. It is not clear to me how you want to load this.

HIC

View solution in original post

2 Replies
hic
Former Employee
Former Employee

Yes, you can do the following:

     Load CustomerID, KidName1 From ... Where Len(Trim(KidName1))>0 ;

     Join Load CustomerID, KidName2 From ... Where Len(Trim(KidName2))>0 ;

     Join Load CustomerID, KidName3 From ... Where Len(Trim(KidName3))>0 ;

and this will create exactly the table that you want. The problem is however, what you should do with your ConnectionCode. It is not clear to me how you want to load this.

HIC

Not applicable
Author

Hi Henric

Many Thanks. Your solution is works.

Best Regards,

Heri Setiawanto