Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
rajat2392
Partner - Creator III
Partner - Creator III

Get comma separated values of a field

Hi,

I have a field with number values. There are around 106,000 records in the table.

I want all the values in any object as comma separated.

Can anybody suggest me how to achieve it.

Thanks

Rajat Arora

1 Solution

Accepted Solutions
Kushal_Chawda

Data:

LOAD  FieldA,

             FieldB,

             Concat(distinct FieldC,',') as CommaSep

FROM table

group by FieldA,FieldB;

View solution in original post

16 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

Concat(FieldName,',')

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Chanty4u
MVP
MVP

am not sure...

u can give  coma  for decimal and thousand..... it wil seperate comma.

sep.PNG

rajat2392
Partner - Creator III
Partner - Creator III
Author

It doesn't work for 100,000 records in my case.

Chanty4u
MVP
MVP

yes it is working for all..

go to document properties   > select nymber tab-->select ur Number fileds--->change to  override---> follow above imagecmmm.PNG

rajat2392
Partner - Creator III
Partner - Creator III
Author

Hi,

I need the distinct values in the field together with a comma separator.

This is not my requirement actually.

Thanks for the reply.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

For a distinct value you can out distinct keyword.

Concat(Distinct FieldName,',')


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
kkkumar82
Specialist III
Specialist III

Like this may be

Concat(Distinct fieldName,',')

Are you using this in text box or where?

Thanks

Kiran Kumar

Chanty4u
MVP
MVP

as mentioned Kaushik use distinct function=

=Concat(Distinct Filedname,',')

rajat2392
Partner - Creator III
Partner - Creator III
Author

I have total 106,081 distinct values.

I want all of them to come in a row with comma separation.

It doesn't happen as the records are huge.

Is there any other way?

Thanks

Rajat Arora