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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.