Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Grouping/Pivot

Hello! 

 

I have a Query table like this:

IDNameQA1QA1_ErrorType1QA1_ErrorType2QA1_ErrorType3Weekly_QAWeekly_QA_ErrorType1Weekly_QA_ErrorType2Weekly_QA_ErrorType3Followup_QAFollowup_QA_ErrorType1Followup_QA_ErrorType2Followup_QA_ErrorType3
1234Peter110000000000
1234Peter000010000000
1234Peter000000001001

It is just an example, there are many names, IDs and 0/1 combinations in my table.

I need to write a table which would have information on all QAs for each unique IDs:

IDNameQA1QA1_ErrorType1QA1_ErrorType2QA1_ErrorType3Weekly_QAWeekly_QA_ErrorType1Weekly_QA_ErrorType2Weekly_QA_ErrorType3Followup_QAFollowup_QA_ErrorType1Followup_QA_ErrorType2Followup_QA_ErrorType3
1234Peter110010001000
.....             

Please let me know how to do it in Query Editor?

  • Anonymous's avatar
    Anonymous
    6 years ago

    You just have to use the Group function in Power Query, grouping by your id and summing other columns. The first icon on the toobar "Transform"

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    You just have to use the Group function in Power Query, grouping by your id and summing other columns. The first icon on the toobar "Transform"