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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
likesharad
New Member

How to get xml tag attribute value as a column

Can someone help with below issue:

I'm importing XML file in power BI for reporting. I've tranformed the xml tags in required columns but in one of the XML tag contains multiple attributes as:

<plan key="RBPOC-DNB" enabled="true" type="chain" shortKey="DNB" shortName="Execution Plan - DNB - Arch " name="Test Automation - Trunk - Execution Plan - DNB - Arch ">

 

How can I get two of these attributes values of this xml tag in additional columns for my report?

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @likesharad ,

Looks like you have missed the ending "</plan>" in the xml file, add it and use xml connector in power bi to get each value of attribute:

<plan key="RBPOC-DNB" enabled="true" type="chain" shortKey="DNB" shortName="Execution Plan - DNB - Arch " name="Test Automation - Trunk - Execution Plan - DNB - Arch "></plan>

xml.png

re.png

 

Best Regards,
Community Support Team _ Yingjie Li
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

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @likesharad ,

Looks like you have missed the ending "</plan>" in the xml file, add it and use xml connector in power bi to get each value of attribute:

<plan key="RBPOC-DNB" enabled="true" type="chain" shortKey="DNB" shortName="Execution Plan - DNB - Arch " name="Test Automation - Trunk - Execution Plan - DNB - Arch "></plan>

xml.png

re.png

 

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

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors