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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

DAX to concatenate multiple measure values with newlines into single measure

So I can't seem to find an answer to this anywhere... I have a series of measure that are reading the selected values of different slicers. I'd like to take these measures and combine them into a new single measure that separates their values with newlines. Here is a sketch of what I want to do:

 

HAVE:

 

measure_2 = "slicer value a; slicer value b; slicer value c"

measure_2 = "slicer value e; slicer value f; slicer value g"

measure_3 = "slicer value x; slicer value y; slicer value z"

 

WANT:

measure_4 = "measure_1: slicer value a; slicer value b; slicer value c

                       measure_2: slicer value e; slicer value f; slicer value g

                       measure_3: slicer value x; slicer value y; slicer value z"

 

Is there any possible way to do this? I think the CONCATENATEX function will probably be involved but I'm honestly pretty stuck. Thank you!
 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , try like

"Slicer a " & CONCATENATEX(values(Table[slicer value a]),Table[slicer value a]) & "Slicer b " & CONCATENATEX(values(Table[slicer value b]),Table[slicer value b]) & "Slicer b "
& CONCATENATEX(values(Table[slicer value c]),Table[slicer value c])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , try like

"Slicer a " & CONCATENATEX(values(Table[slicer value a]),Table[slicer value a]) & "Slicer b " & CONCATENATEX(values(Table[slicer value b]),Table[slicer value b]) & "Slicer b "
& CONCATENATEX(values(Table[slicer value c]),Table[slicer value c])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Can you share a screenshot of your current scenario and what are the expected results.

 

Regards,

HN

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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