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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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