cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lfrigione
Helper I
Helper I

XML fields in DAX

I have an XML field in my table that is something like that:

<texts>

<text lcid="1040">Ciao<text>

<text lcid="2057">Hello<text>

</texts>

 

I Know the lcid that I want,

How can I keep only a specific text in dax query and not all xml text?

1 ACCEPTED SOLUTION

Hi @lfrigione,

 

The field is already a xml type. Then you can parse that field. Finally, you can extract the values you want. Please refer to the snapshot below.

XML_fields_in_DAX

 

Best Regards,

Dale

Community Support Team _ Dale
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

3 REPLIES 3

@lfrigione You can transform your value to xml in the power query editor and parse it out.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

I can not find how to format the field as xml type

Hi @lfrigione,

 

The field is already a xml type. Then you can parse that field. Finally, you can extract the values you want. Please refer to the snapshot below.

XML_fields_in_DAX

 

Best Regards,

Dale

Community Support Team _ Dale
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

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!