Forum Discussion
Working with XML data
I need to show xml data in my report. This data is stored in an SQL table. How do I extract parts of this xml and convert it into a tabular data? I am doing it in my SSRS report, but copying and pasting T-SQL is not possible.
Thanks
6 Replies
- AnonymousNot applicable
Markzolotoy I guess I'm confused. Couldn't you create a procedure to parse the xml and return the table that you want to load into Power BI?
How are you doing it for SSRS?
- MarkzolotoyImpactful Individual
In SSRS I am pulling an XML data into report first, then I use CTE in the report to convert it into the tabluar data.
- AnonymousNot applicable
Markzolotoy This sounds like a stored procedure... not SSRS. Either that, or you are doing something I've never done in SSRS before.
- AnonymousNot applicable
Hi Markzolotoy,
I'd like to suggest you enter to query editor, add a custom column and try to use xml.document/xml.table to analysis this xml column, then expand the analysed xml table.
Accessing data functions
Xml.Document Returns the contents of an XML document as a hierarchical table (list of records). Xml.Tables Returns the contents of an XML document as a nested collection of flattened tables. Regards,
Xiaoxin Sheng