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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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