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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Converting rows to columns in Power BI

Screenshot (147).png

 Does anyone know to make the right table turn into table on the left side where if the employee ID's section name is there, it will change from rows in a column to new columns

1 ACCEPTED SOLUTION
Wilson_
Super User
Super User

Hello,

 

It looks like you're probably looking for the unpivot functionality in Power Query. See this article in the documentation for more details. Please let me know if you have any follow up questions after taking a look at the link. 😄


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Wilson_
Super User
Super User

Hello,

 

It looks like you're probably looking for the unpivot functionality in Power Query. See this article in the documentation for more details. Please let me know if you have any follow up questions after taking a look at the link. 😄


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

nur4dumplings_0-1681092026510.jpeg

Step 1: I've unpivot the selected column
Step 2: I pivot-ed the Value column in Step 1 and now the final looks of the table became like this. How do I make it into Table No. 3?

Hello,

 

I found a different thread that covers your new scenario exactly. They wrote a function to flatten the rows like you want. You may need to replace all the 0s with nulls, either as separate steps (right click each column and click Replace Value) or adding it into their function when you modify it to fit your use case). 😄




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors