cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LawrenceKay Regular Visitor
Regular Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Grouping Names

Hi @LawrenceKay,

 

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.
4 REPLIES 4
Highlighted
Super User
Super User

Re: Grouping Names

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?

LawrenceKay Regular Visitor
Regular Visitor

Re: Grouping Names

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

Community Support Team
Community Support Team

Re: Grouping Names

Hi @LawrenceKay,

 

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.
Community Support Team
Community Support Team

Re: Grouping Names

Hi @LawrenceKay,

 

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.