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 convert data in rows to column headers and move data

Hi All, 

A bit stumped with this:

 

I need to convert data in "results.data.metrics.metric" to column headers and then replace that data with "results.data.metrics.stats.count", "results.data.metrics.stats.max", "results.data.metrics.stats.min", "results.data.metrics.stats.sum" and also move the corresponding data.


This is what it looks like currently:

AnandKumar_0-1690693063229.png


This is what I'm trying to achieve:

AnandKumar_1-1690693506656.png


Have tried to transpose and pivot operations but no success. 

 

Apologies if the title is unclear! Any solutions will be highly appreciated!

 

1 REPLY 1
vanessafvg
Super User
Super User

i think you need to pivot rather than transpose.  

 

https://www.youtube.com/watch?v=li0c6R6UpCw





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.