Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
v2
Frequent Visitor

Concatenate a list in a custom column

Hi,

 

Wondering if you can help. It sounds easy but i am having trouble doing it.

 

So i have a table with once column as below

 

Value list

 

a

b

c

 

I need to create a new column in the same table and concatenate value list in a new column to read as below:

[a,b,c] . This will be in one cell in the new column.

 

Thanks for your help.

 

Regards

V

1 ACCEPTED SOLUTION

NewStep=Table.AddColumn(PreviousStepName,"Custom",each "["&Text.Combine(PreviousStepName[sup],",")&"]")

View solution in original post

6 REPLIES 6
v2
Frequent Visitor

Thanks for your help. it worked.

Vijay_A_Verma
Super User
Super User

Use following

=Text.Combine([Data],",")

Where Data is the name of the column which holds the list

 

Hi Vijay,

 

Thanks for your promp response.

 

Unfortunately i am getting an error using your formula. I have 63 items ( this can increase in the future) and i need to combine all these values starting with a square bracket followed by each item followed by a comma and a closing square bracket at the end. i.e. [a,b,c,d,e,f]

 

Am i getting a error due to the lenght of the string perhaps?

Can you please post the screenshot of your error?

v2_0-1659564500774.png

 

NewStep=Table.AddColumn(PreviousStepName,"Custom",each "["&Text.Combine(PreviousStepName[sup],",")&"]")

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors