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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors