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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
malcek
New Member

expanding column end up with TABLE value

Hello

i'm struggeling with one problem for some time 🙂

I get supplier xml and in some fields there are multiple urls, but when importing with power query it doesent recognize this filed as multiple items in one field and show only Table value instead actual urls

here is how it looks in xml: PowerQuery 
link to picture when edit in PowerQuery: edit power query 

 

 


thanks for any advice

Martin

2 REPLIES 2
malcek
New Member

First thank you for your help.

Inside this column there are additional picture urls. Sometimes you have one additional picture, sometimes none and sometimes two or more and this last combination is problematic. 

This is how it looks in PQ and the code that expands data in column
= Table.ExpandTableColumn(#"Razširjeni TOWARY.PRODUKT.KOLORY.KOLOR", "TOWARY.PRODUKT.KOLORY.KOLOR.zdjecia", {"zdjecie"}, {"TOWARY.PRODUKT.KOLORY.KOLOR.zdjecia.zdjecie"})

malcek_0-1614754273917.png

and inside xml when open it in web browser

malcek_1-1614754345370.png

 

HERE you can also get actual XML

 

PhilipTreacy
Super User
Super User

Hi @malcek 

The XML must be in a format that is turned into a table in PQ. What exactly do you want to do?  Extract the contents of these tables?  What data is inside the tables?

Without seeing your real data it's harder to find a solution but i think I'd probably duplicate your query, remove allrows that don't have a Table, then expand all the tables and extact th data you need.

You can then append this data (from the duplicated query) back onto the original query.

Please supply your PBIX file or more help.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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