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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Help on Pivot Table

I want to create a pivot table for the table below: I am not able to write a correct power query , any help?

 

niharikatomar_0-1691007891152.png

 

2 REPLIES 2
rubayatyasmin
Community Champion
Community Champion

Hi, @Anonymous 

 

You do not need to write PQ code to pivot. PQ has pivot/unpivot built-in options. Mostly pivoting can be done using that option. Advanced pivoting might need writing M code in advanced editor. 

 

from PQ go to Transform tab then click on pivot table. Select the column you want pivot. You might want to see the options below in the Advanced Option tab. 

 

Or if you can share a demo file of data here, I will be happy to asssit. 

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Anonymous
Not applicable

Hi, I have attached the screenshot for the sample data with the question.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.