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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Reece_EC
New Member

multiple API retuning XML with inconsistent data types for same column

Hi,

 

I have a query that has an API call to a table that returns an XML. Due to limitations on the API, I need to call the API for multiple pages. For some reason some of the columns are being returned as a single Text Value (or Date depending on the column) on one call but a Table Value on another.

 

Advanced Editor:

Reece_EC_0-1652938230704.png

 

Sample output (this is also happening to a number of other columns):

Reece_EC_1-1652938288578.png

 

Is there a way to stop having these incorrectly set as a table value? 

A way to convent just those that have been incorectly set as a Table Value?

 

Any help is appreciated.

 

Thanks, Reece.

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Reece_EC ,

 

Sorry for that the information you have provided is not making the problem clear to me.

Do you want to keep on expanding Table values ? Or just filter out Table values?

 

Refer to:

Power Query XML connector - Power Query | Microsoft Docs:

Due to the fact that many XML documents have ragged or nested data, you may have to do extra data shaping to get it in the sort of form that will make it convenient to do analytics. This holds true whether you use the UI accessible Xml.Tables function, or the Xml.Document function. Depending on your needs, you may find you have to do more or less data shaping.

 

 

Best Regards,
Eyelyn Qin

 

Hi Eyelyn,

I am wanting the data in the "table" fields shown in the column just list the rest of the data in those columns.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.