Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Grouping Names

Hi,

 

Currently this is the table I have.

 

I would like the table to be in this format.

  

 

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

  • 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,

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Stachu,

       

      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

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Microsoft Employee

        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,

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Microsoft Employee

    Hi Anonymous,

     

    Could you please mark the proper answers as solutions?

     

    Best Regards,