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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to Pivot Multiple Values to Row Column Header

I feel like I'm running at a blank, how can I convert this data set so that only the first 11 rows are column headers. I have rows of this information but only "Date" to "Prime Firm" are needed for column headers, the data to the right (not shown) should fall underneath like the example in the second screenshot. Power Query Screenshot.PNGExample.PNG

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

See the below,for an example:

base table:

vluwangmsft_0-1635235243012.png

1. Transform data:

vluwangmsft_1-1635235270780.png

 

transpose table:

vluwangmsft_2-1635235404649.png

after transpose table:

vluwangmsft_3-1635235442487.png

 

2.Then use the first  row as header:

vluwangmsft_4-1635235477227.png

 

3.After apply and then delete other column you do not need.

vluwangmsft_5-1635235655461.png

 

 

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


Best Regards

Lucien

HotChilli
Super User
Super User

I suppose it depends on what the rest of the data looks like.

Have you tried 'Keep top rows' from the PQ interface? 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.