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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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