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
FrancescoSCP
Helper IV
Helper IV

Concatenate values by dimension

Hi all,

 

i have some data like this...

 

CUSTOMER  ACTIVITY  DESC

1                   AA            Started

1                   AA            Completed

2                   AA            Started

2                   AA            Waiting..

2                   AB            Stopped

 

 

I want to create a matrix wiew that has customers on rows and activities on columns.

On values i want to put concatenation of DESC field.

 

For example

 

2019-11-06 17_47_46-Cartel1 - Excel.png

 

Is there a function in Power BI or some DAX to concatenate those strings?

 

Thanks,

Francesco

1 ACCEPTED SOLUTION

@FrancescoSCP @parry2k 

 

To add to parry2k solution, you might need to add a VALUES around the table reference in the measure, to avoid repetition of values 

ie:

My Desc = CONCATENATEX(VALUES(Test[Desc]), Test[Desc], ", ")




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@FrancescoSCP try this measure, change table and column name as per your model.

 

My Desc = CONCATENATEX ( Test, Test[Desc], ", " ) 

 

Add matrix visual with following columns

 

image.png



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@FrancescoSCP @parry2k 

 

To add to parry2k solution, you might need to add a VALUES around the table reference in the measure, to avoid repetition of values 

ie:

My Desc = CONCATENATEX(VALUES(Test[Desc]), Test[Desc], ", ")




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






EDIT: My error, i created a column and not a measure. Now it works good..THANKS!

 

Matrix.png

 

I've tried your suggestion but something is not working properly.

 

I have this data:

Data.png

 

and loaded into Power BI, then created this Column

Description = CONCATENATEX(VALUES(Activities[Desc]);Activities[Desc];UNICHAR(10))
 
Then created a Matrix with this new column, but it repeats for every Customer-Activity the same description:
Matrix.png
The goal is to show the activities related to customer/activity.
 
Any suggestion?
 
Thanks,
Francesco
 

@FrancescoSCP 

 

Can you try the formula as a measure instead of a column?

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi,

 

thanks guys, i will test this and let you know..

 

Regards,

Francesco

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors