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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Extracting data from a .html file not structured as a table

Hello community,

I am trying to extract data from a .html file using PQ. The file is not structured as a table which means I have to go looking in different <div> containers. I am experiencing having to drill into 15+ tables before maybe reaching relevant data.

Does anyone have some tips on how to do this? Drilling to 'end' or searching inside the containers? I am kind of out of ideas

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Turns out using PQ for Excel was a bad idea in this case - I have now switched to PQ for PBI and am having no issues unpacking this.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Turns out using PQ for Excel was a bad idea in this case - I have now switched to PQ for PBI and am having no issues unpacking this.

v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please use the Html.Table function to get table data? Could you please share your example code?

 

Best Regards,
Winniz

Anonymous
Not applicable

I have tried this out but am unsure how to apply it.

Consider this table

 

CaptionSourceData
ElementHTMLTable

 

If I do Html.Table([Data]) I get an Expression.Error saying 'Html.Table' wasn't recognized.

Am I going about this correctly?

Anonymous
Not applicable

Thank you for your reply I will test this out later and (hopefully) come back to mark as a solution

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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