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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AnandKumar
Regular Visitor

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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