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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors