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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Justas4478
Post Prodigy
Post Prodigy

Altering data to tur row values in to columns

Hi, I have this data.

Justas4478_0-1756458846864.png

As you can see each file has multiple rows of same products and they can have either same or different Plant.
I can summarise it by file product and plant to reduce number of rows, but I cant fin a way to present data in a way that I want in the next step.
This is how I want data to be at the end result.

Justas4478_1-1756459011443.png

At the end result different plant would become columns and have values showing only for that plan.
Anny suggestions how I can transform my data in to this?

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Justas4478 ,

 

In Power Query, select [Plant] column.

Go to the Transform tab > Pivot Column.

In the dialog box that opens, select [Unrestricted Stock] in the 'Values Column' dropdown.

Expand the Advanced Options section and ensure that the Aggregate Value Function selected is SUM.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
aTa_Shaikh
Frequent Visitor

You Can Pivot the Plant Column and in the value part of the Table.Pivot function you can have unrestricted stock Column

 

BA_Pete
Super User
Super User

Hi @Justas4478 ,

 

In Power Query, select [Plant] column.

Go to the Transform tab > Pivot Column.

In the dialog box that opens, select [Unrestricted Stock] in the 'Values Column' dropdown.

Expand the Advanced Options section and ensure that the Aggregate Value Function selected is SUM.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




@BA_Pete I completely forgot that there is pivot option since only unpivot appears when you right click on column.
Thanks

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors