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

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
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.