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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Group By and Concatenate

 image.png

Hi, I need to group by Customer and get the clerk's concatenate (like it)

image.png

 

But when I grouped by, Power Bi returns me it (The number of clerk's by the following customer) 

image.png

Could someone help me please?

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Please change your the formula like below.

 

Test163Out =
SUMMARIZE (
    Test163Concat,
    Test163Concat[Customer],
    "Clerk", CONCATENATEX ( VALUES ( Test163Concat[Clerk] ), Test163Concat[Clerk], " " )
)

And then you will get the output you desired.

 

Capture.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
PattemManohar
Community Champion
Community Champion

@Anonymous Please try this..

 

Test163Out = SUMMARIZE(Test163Concat,Test163Concat[Customer],"Clerk",CONCATENATEX(Test163Concat,Test163Concat[Clerk]," "))

image.png





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

Proud to be a PBI Community Champion




Anonymous
Not applicable

image.png

Hi @Anonymous,

 

You should create calculated table with the formula from PattemManohar, then you will get the dedired output.

 

calculated table.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

It works, but the names are appearing more than once. I wish that each name appeared only one time in the line.

 

Hi @Anonymous,

 

Please change your the formula like below.

 

Test163Out =
SUMMARIZE (
    Test163Concat,
    Test163Concat[Customer],
    "Clerk", CONCATENATEX ( VALUES ( Test163Concat[Clerk] ), Test163Concat[Clerk], " " )
)

And then you will get the output you desired.

 

Capture.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlB
Super User
Super User

Hi @Anonymous

What code did you use to get the results you mention?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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