Forum

unpivot quantity an...
 
Notifications
Clear all

unpivot quantity and value in multiple columns

3 Posts
2 Users
0 Reactions
117 Views
(@chris786)
Posts: 2
Topic starter
 

Hi All,

Im  trying to unpivot  data that has quantity and value by stores, but am unable to do it. There is however total qty and value in the last columns, but I need to get the data in tabular format by store for qty and  value so that I can make a pivot table  to show sales  by store by qty and  value.

I  have  attached the sample file.

Appreciate if anyone can help and advice the steps.

 

Thanks,

Mustafa

 
Posted : 25/02/2019 7:25 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Mustafa,

Welcome to our forum.

You'll see in the attached file that I've used Transpose so the first two rows can be merged. Then you can Transpose and promote headers allowing you to unpivot, as explained in this Power Query Unpivot video tutorial.

Mynda

 
Posted : 25/02/2019 6:41 pm
(@chris786)
Posts: 2
Topic starter
 

Thanks Mynda,I followed your steps and got through. I was working on this for a month, but was unable to get around.

Much appreciated.Laugh

 
Posted : 26/02/2019 1:35 am
Share: