Forum Discussion

oluong's avatar
oluong
Helper I
6 years ago
Solved

Need Help with grouping and summing

My first table has all the list of possible table name category: My second table name DataCollection  is a table that collected data based on those category above.  The category are seperated ...
  • v-alq-msft's avatar
    6 years ago

    Hi, oluong 

     

    Based on your description, I'd like to suggest you use 'unpivot' and 'group by' feature in 'Query Editor'. I created data to reproduce your scenario. The pbix file is attached in the end.

     

    Table:

     

    You may make all column selected, click 'Transform' ribbon=>'Unpivot columns'.

     

    Then you need to click 'Group by' in 'Transform' ribbon and set as below. Finally you can rename the columns to get the result.

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.