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

Problem when expanding XML table fields to rows instead of columns

Hi!

 

I'm processing an folder with XML files (SEPA Direct Debit Rejections) and have reached to this point:

 

ExampleCase1.jpg

 

When expanding the table, instead of creating new COLUMNS, each of tipe 'Table', it creates new ROWS:

 

ExampleCase2.jpg

The command used is:

= Table.ExpandTableColumn(#"Personalizada agregada", "Transformar archivo", Table.ColumnNames(#"Transformar archivo"(#"Archivo de ejemplo")))

 

Why does this happens? Is there a way to force to expand in columns?

 

If not? Could I move the rows to columns? I have trie to PIVOT, but it says can't pivot TABLE columns. Can I merge again the rows somehow?

 

Thanks!

 

 

 

 

1 ACCEPTED SOLUTION

At the end, what I did was REFER the table three times (three new tables), and, on each, filter by column (one for GrpHdr, other for OrgnlGrpInfAndSts and a last one for OrgnlPmtInfAndSts. Then I expand them separately, and JOIN them somehow later in the model.

 

It has been the only solution I have found. 😞

View solution in original post

3 REPLIES 3

At the end, what I did was REFER the table three times (three new tables), and, on each, filter by column (one for GrpHdr, other for OrgnlGrpInfAndSts and a last one for OrgnlPmtInfAndSts. Then I expand them separately, and JOIN them somehow later in the model.

 

It has been the only solution I have found. 😞

arichard19
Resolver I
Resolver I

Have you tried expanding on that column?

arichard19_0-1658234847694.png

 

It just makes the problem bigger, as some of the new fileds are part o GrpHdr, some of OrgnlGrpInfAndSts... and so on...

 

ExampleCase3.jpg

 

Thanks for your idea, anyway 😉

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.