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

Get output table

Hi i have a table with data

Bike_IDBike_Name
1Royal
1Enfield
2Harley
2Davidson

But i want the output data table like

Bike_IDBike_Name
1Royal Enfield
2Harley Davidson

How can we get this?

1 Solution

Accepted Solutions
Nicole-Smith

Load script like this should do the trick:

Data:

LOAD Bike_ID, Concat(Bike_Name, ' ', RecNo()) as Bike_Name GROUP BY Bike_ID;

LOAD * INLINE [

    Bike_ID, Bike_Name

    1, Royal

    1, Enfield

    2, Harley

    2, Davidson

];

I have also attached a working example.

View solution in original post

3 Replies
brindlogcool
Creator III
Creator III

You can get it done by using String aggregation functions

From reference manual..

Load Department, concat(Name,' ') as NameList from abc.csv group by Department

Nicole-Smith

Load script like this should do the trick:

Data:

LOAD Bike_ID, Concat(Bike_Name, ' ', RecNo()) as Bike_Name GROUP BY Bike_ID;

LOAD * INLINE [

    Bike_ID, Bike_Name

    1, Royal

    1, Enfield

    2, Harley

    2, Davidson

];

I have also attached a working example.

Not applicable
Author

Hi Uday,

You can use Concat Command.

I have done it for you in attached .qvw document.

I hope it will help you.

Best Regards