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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Vasili
Frequent Visitor

Convert table into a string

Thank you in advance!

 

I have a trable that changes based on a filter. I would like to get a string that lists the values in that table seperated by commas. For example, if my table said:

 

USA

PERU

Canada

 

I would like to see a string that says "USA, Peru, Canada". The table will never have more than 10 rows.

 

Thank you again!!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Vasili 

you can use CONCATENATEX. If the result to be displayed in a card visual for example you can iterate over the VALUES of the column 

CONCATENATEX (

VALUES ( TableName[ColumnName] ),

TableName[ColumnName],

", "

)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Vasili 

you can use CONCATENATEX. If the result to be displayed in a card visual for example you can iterate over the VALUES of the column 

CONCATENATEX (

VALUES ( TableName[ColumnName] ),

TableName[ColumnName],

", "

)

Awesome, it works... thank you so much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.