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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
gvg
Post Prodigy
Post Prodigy

How to parse <td> tags with HTML.Table ?

Hello,

I am trying to figure out how HTML.Table works. Microsoft description of this function is very basic. Let's say I have a simple HTML code "<td> 100.67</td>" from which I want to extract the value (100.67).  Trying this code, but it does not give me wanted result, although does not complain about syntax:

    = Html.Table("<td> 100.67</td>", { {"myValue", "td"}})

This one does not work either:

    = Html.Table("<td>100.67</td>", { {"myValue", "td"}}, [RowSelector="td"])

 

What am I missing here?

1 ACCEPTED SOLUTION
nitishsh91
Solution Supplier
Solution Supplier

Hi @gvg 

 

It looks like the issue might be with the way the HTML code is formatted. The Html.Table function expects the input HTML code to be in a specific format, with a table structure containing rows and columns. The code you provided is just a single cell in a table, without any surrounding table structure.

Note that in this example, the HTML code has a table structure, with a single row and a single cell containing the value 100.67.

Also, the second parameter of Html.Table is a list of name-selector pairs, not a record. So you should use

let
html = "<table><tr><td>100.67</td></tr></table>",
#"Extracted Table" = Html.Table(html, {{"myValue", "td"}})
in
#"Extracted Table"

 

View solution in original post

2 REPLIES 2
gvg
Post Prodigy
Post Prodigy

Yes, you are right. Thank you! 

nitishsh91
Solution Supplier
Solution Supplier

Hi @gvg 

 

It looks like the issue might be with the way the HTML code is formatted. The Html.Table function expects the input HTML code to be in a specific format, with a table structure containing rows and columns. The code you provided is just a single cell in a table, without any surrounding table structure.

Note that in this example, the HTML code has a table structure, with a single row and a single cell containing the value 100.67.

Also, the second parameter of Html.Table is a list of name-selector pairs, not a record. So you should use

let
html = "<table><tr><td>100.67</td></tr></table>",
#"Extracted Table" = Html.Table(html, {{"myValue", "td"}})
in
#"Extracted Table"

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.