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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
lfrigione
Helper II
Helper II

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
Seth_C_Bauer
Community Champion
Community Champion

@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.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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