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
hokiefan1113
Advocate I
Advocate I

XML document data in a column

 I'm working with a transaction log on PBI that only shows the failures, and one column, "FAILEDXML" shows the details of each fail in an XML document format (see below). My goal is to take this data and convert it to a better/neater presentation on Power BI. Is this possible and how would I go about it?

 

failxml.PNG

Thank you very much!

 

 

1 ACCEPTED SOLUTION

Hi @hokiefan1113,

 

You could click the icon highlight in red and expand the table.

 

expand.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
hokiefan1113
Advocate I
Advocate I

Hi @v-piga-msft thanks for your response. I parsed the data and now it looks like this. Any idea of how to extract the data in the "table" link?

 

parsexml.PNG

Please use below M Code. This has worked for me. Just change the path and rest it will handle;

let
Path = "C:\test\Outstanding Report BI\AutoRefresh\Current\",
Source = Folder.Files(Path),
XMLImport= Xml.Tables(Source{[#"Folder Path"= Path,Name="TALLY.xml"]}[Content],null,1252),
#"Added Custom" = Table.AddColumn(XMLImport, "Custom", each Table.ToList([Table])),
Transform = #table(#"Added Custom"[Name],List.Zip(#"Added Custom"[Custom]))
in
Transform

Hi @hokiefan1113,

 

You could click the icon highlight in red and expand the table.

 

expand.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @hokiefan1113,

 

You could have a try with clicking Parse to xml.

 

 parse.PNG

 

If you still need help, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.