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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Converting XML data to a table

Hello all,

 

I am trying to reach out to our organisation's HR data and shape the data on PowerBI Desktop.

 

We are connecting through API and the data structure is XML.

 

When I connect to the directory, data is visible as below:

1.jpg

 

2.jpg

 

When I open the query editor, what I see is below (as the next step I am expanding the tables to see the data):

3.jpg

 

After expanding the tables; now I see:

4.jpg

 

However, the data structure I need  is like the following:

 

displayNamefirstNamelastNamejobTitle
John DoeJohnDoeExpert
Jane DoeJaneDoeLead

 

I tried to convert data using "transpose" in the query, but it didn't work..

 

You guys have any idea on how to shape the data in a usable format?

 

Thanks in advance for your support.

 

Ugur

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

You can pivot Attribute::ID column, select Element::Text column as your Values Column, and under Advanced Options, choose Don't Aggregate. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous,

You can pivot Attribute::ID column, select Element::Text column as your Values Column, and under Advanced Options, choose Don't Aggregate. 

Anonymous
Not applicable

@Anonymous Thank you! This is what I've been looking for!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.