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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors