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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ROG
Responsive Resident
Responsive Resident

Extract data from XML Files.

Hi guys,

 

I need your help with extracting data from xml file. 

I have read a few post in here but none of them was useful for my issue. 

 

ROG_1-1660554269347.png

 

When I click on expand entity, it opens another tons of entities that require to do the same. I repeated this step for 15 times until there was nothing left, and final result looks messed up. 

 

I was expecting the below.

ROG_2-1660554530181.png

 

So once it's imported, what would the next step be please?

Thanks!

 

1 REPLY 1
lbendlin
Super User
Super User

XML is a (ragged) hierarchy.  Power BI expects flat tables. You need to make compromises. You need to make decisions.  Which of the data in the XML do you need, and what can you ignore?  If you say "I need all the data" then you have to suffer through the fifteenfold expansion/flattening.   Square peg -> round hole. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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