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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
marciomendonca
Frequent Visitor

Importing XML file into POWER QUERY

Hi community, good afternoon.

I'm facing this issue: I've been trying to import a XML File into Power Query, but, unfortunately it's not being straight forward as I expected and here is the problem:
It's being imported as a huge single column, where the first 32 rows correspond to the actual headers from the table that I was initially expecting to get

marciomendonca_0-1669744837913.png

 

So, instead of having o single column with over 20k rows I want to get a table with 32 columns and its respective amount of rows.

Is it doable using Power Query? I mean to split a larger column into multiple columns using a counter (a split each 32 rows) as a delimeter.

Best regards.

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @marciomendonca , you can transpose the table in Power Query:

Bifinity_75_0-1669759027204.png

But to work with XML files I always create a star data model, like the image:

Bifinity_75_1-1669759113555.png

model compression will improve and result in a smaller Pbix file, and better performing.

 

Best regards

 

View solution in original post

1 REPLY 1
Bifinity_75
Solution Sage
Solution Sage

Hi @marciomendonca , you can transpose the table in Power Query:

Bifinity_75_0-1669759027204.png

But to work with XML files I always create a star data model, like the image:

Bifinity_75_1-1669759113555.png

model compression will improve and result in a smaller Pbix file, and better performing.

 

Best regards

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.