Forum Discussion
JS
Helper II
8 years agoHelp in Data modelling
Hello. I need some help with data modelling here! I have the table below - Buyer Green Apple Red Apple Orange Pineapple Kiwi Strawberry James 1 0 0 0 0 0 James 0 0 0...
- 8 years ago
Yes, it can be done easily in Power Query:
(1) unpivot all the non-Buyer columns, so that you get a table with 3 columns: Buyer, Fruit, Qty
(2) group by both Buyer and Fruit columns, summing over Qty
(3) finally, pivot the Fruit and Qty columns
DAX0110
Resolver V
8 years agoYes, it can be done easily in Power Query:
(1) unpivot all the non-Buyer columns, so that you get a table with 3 columns: Buyer, Fruit, Qty
(2) group by both Buyer and Fruit columns, summing over Qty
(3) finally, pivot the Fruit and Qty columns
- JS8 years ago
Helper II
Thank you!!!! Worked perfectly!!!!