Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Saritha077
Contributor II
Contributor II

need to get multiple field values into one row from multiple rows

Hi All,

I have data like below..

Product Name     product Locations

Shoes                     Hyd

Shoes                     Bangalore

Shoes                     Chennai

 

but i want get like 

Product Name     product Locations

Shoes                     Hyd,Bangalore,Chennai

while loading i need it.

 

Please help me to get this.

Thanks in advance.

Labels (3)
3 Replies
Amit_Prajapati
Creator II
Creator II

Hi @Saritha077  , Try with Concat([product Locations],',') 

Amit_Prajapati_0-1760954054377.png

 

Saritha077
Contributor II
Contributor II
Author

Thanks for your quick reply...Could you please help me to get while loading

howdash
Creator II
Creator II

You can use the concat() function in the script, but you will need to remember to use the Group By statement also. Like this:

tableName:

LOAD [Product Name],
    concat([product Locations], ‘,’) as [combined Locations

Resident someOtherTable

Group By [Product Name]
;