Forum Discussion

emontfort's avatar
emontfort
Regular Visitor
6 years ago
Solved

Unpivot for item and date

I need to take a query that looks like tab 1, and make it look like tab 2.  I have tried to unpivot,  but am still not getting exactly what is needed.

 
 

 

 

  • edhans's avatar
    edhans
    6 years ago

    Select the Supplier Name, UOM, and Item Number columns, then on the Transform ribbon of Power Query, select the little dropdown next to "Unpivot Columns" and then select "Unpivot Other Columns."

    Then rename the Attribute column to Date, and the Values column to whatever that is, Sales, Cost, Units, whatever.

     

3 Replies

    • emontfort's avatar
      emontfort
      Regular Visitor

      Sorry - I orignally attached them - not sure what happened!

      So I want to change from Table 1 to Table 2

      TABLE 1

      TABLE 2

      • edhans's avatar
        edhans
        Community Champion

        Select the Supplier Name, UOM, and Item Number columns, then on the Transform ribbon of Power Query, select the little dropdown next to "Unpivot Columns" and then select "Unpivot Other Columns."

        Then rename the Attribute column to Date, and the Values column to whatever that is, Sales, Cost, Units, whatever.