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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Make a measure that transforms a column of values to a list in text with a separator

Hi!

 

I need to make a measure that transforms a column of values to a text list with a separator.

Psuedo-code: Measure = "Combine to text" ( VALUES('Table'[Column]), ',')

[Table]

[Column]

a

b

c

Result: 'a, b, c'

 

It has to be a calculated measure,  since the data source is a SSAS tabular-cube, I cant do anything with power query or calculated columns.

 

Regards

Niklas

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

You can use CONCATENATEX

 

Measure =
CONCATENATEX ( VALUES ( 'Table'[Column] ), [Column], "," )

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

You can use CONCATENATEX

 

Measure =
CONCATENATEX ( VALUES ( 'Table'[Column] ), [Column], "," )

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Thanks!

Unfortunately i wont work for me, because of the sql server version we have is to old. I found this post:

https://community.powerbi.com/t5/Desktop/CONCATENATE-greyed-out/m-p/207078#M91244

If anyone has a work around to achieve the same thing for SSAS with SQL server 2012, please comment.


@Zubair_Muhammad wrote:

@Anonymous 

 

You can use CONCATENATEX

 

Measure =
CONCATENATEX ( VALUES ( 'Table'[Column] ), [Column], "," )

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.