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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ValeriaBreve
Post Patron
Post Patron

concatenate string aggregating dimension

Hello!

I have a table in PowerBI looking like below:

 

DateTimeDetails 
5/22/20248:00 AMThis is the 8 am text
5/22/202410:00 AMThis is the 10 am text
5/22/202412:00 PMThis is the 12 pm text
5/23/20248:00 AMThis is the 8 am text
5/23/202412:00 AMThis is the 12 am text

 

I need to aggregate the text by day, in a concatenation, like so:

DateDetails
5/22/2024This is the 8 am textThis is the 10 am textThis is the 12 pm text
5/23/2024This is the 8 am textThis is the 12 am text

 

I can't think of a good way of doing this... could you please put me in the right direction?

Thanks!

Kind regards

Valeria

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@ValeriaBreve ,

try this measure,

 

Details Measure = CONCATENATEX('Table','Table'[Details])

Arul_0-1716379522875.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@ValeriaBreve ,

try this measure,

 

Details Measure = CONCATENATEX('Table','Table'[Details])

Arul_0-1716379522875.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


@Arul thank you! That was so simple... I actually had a measure to start with, so I really did not think abput concatenatex. I have changed now to having a calculated column for the table and a measure for the concatenation and it works beautifully. Out of curiosity - is there a simple way to do it as well if instead of the calculated column I would still use a measure for "Details"? Thanks!

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!