cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Grouping Names

Hi,

 

Currently this is the table I have.

Short injury table.PNG

 

I would like the table to be in this format.

  Bynum.PNG

 

How do I group the names, so there is only one player and the count of the injuries for that player are summed up. 

 

 

Thanks in advance

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Try this formula, please. It doesn't help. Please provide a sample in TEXT mode that we can copy from and the expected result.

 

Breakdown =
CONCATENATEX (
    SUMMARIZE (
        'table',
        [name],
        [Injury Group],
        "countOfInjury", COUNT ( [injury] )
    ),
    [countOfInjury] & " "
        & [Injury Group],
    ","
)

 

Best Regards,

Community Support Team _ Dale
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

4 REPLIES 4
v-jiascu-msft
Microsoft
Microsoft

Hi @Anonymous,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

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

you need to use CONCATENATEX
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax

 

can you share the original data table in copiable format?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Proud to be a Super User!

Anonymous
Not applicable

Hi @Stachu,

Concar.PNG

 

The aim is to be able to slice by team and date .Select one player and see the injury history with and the injury groups with counts for both of them.

 

Thank you for your help

Hi @Anonymous,

 

Try this formula, please. It doesn't help. Please provide a sample in TEXT mode that we can copy from and the expected result.

 

Breakdown =
CONCATENATEX (
    SUMMARIZE (
        'table',
        [name],
        [Injury Group],
        "countOfInjury", COUNT ( [injury] )
    ),
    [countOfInjury] & " "
        & [Injury Group],
    ","
)

 

Best Regards,

Community Support Team _ Dale
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

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors