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
toafk
Frequent Visitor

Issue expanding column of records

My data is JSON. After doing af lot of transformation, I end up with an issue. When expanding the then column with records, I loose a lot of data.

 

This record fails when expanding

toafk_0-1615967707323.png



This record expands correct.
toafk_1-1615967771620.png  

 

Clearly Power Bi does not undestand the example since it writes "a" instead of "Value".

The data are descriping a resource. The diffence in the underlying XML is, that unsuccesfull records have one CustomProperties  value - and succesfull records have more than one.

 

Succesfull example

 
<CustomProperties>
<Property PropertyID="{2EB29505-BF4B-4E87-BCF5-621CDA954407}">
<Value>Silent Zone</Value>
<Value>Telephone</Value>
</Property>
<Property PropertyID="{3A2A0DCD-308C-446A-9E38-352C42A6A053}">
<Value>Workspace</Value>
</Property>
</CustomProperties>
 
 

Unsuccesfull record example

<CustomProperties>
<Property PropertyID="{3A2A0DCD-308C-446A-9E38-352C42A6A053}">
<Value>Workspace</Value>
</Property>
</CustomProperties>

How should this be handled in Power Query?

 
2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @toafk 

 

I wonder which connector you are using. The problem is related to the structure of the file. Could you show us the transformations applied to the data? Do mask sensitive data before uploading. Thanks.

 

Best Regards

Allan

Vera_33
Resident Rockstar
Resident Rockstar

Hi @toafk 

 

I am not sure what value you want to extract, and you provided XML instead of JSON...are you using some sample query generated by PBI? Have you tried to add a custom column to extract XML or JSON? Can you provide your M code?

Vera_33_0-1616036580065.png

 

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.

Top Solution Authors