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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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