Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
emontfort
Regular Visitor

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.

 
 

 

 

1 ACCEPTED SOLUTION

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.

 

2020-02-27 18_54_32-.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
Jimmy801
Community Champion
Community Champion

Hello @emontfort 

 

there is no data visible, so no idea what exactly you mean

 

Jimmy

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

So I want to change from Table 1 to Table 2

TABLE 1

orig.JPG

TABLE 2

after.JPG

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.

 

2020-02-27 18_54_32-.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors