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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Employee
Employee

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 🙂

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.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.