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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors