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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BIlix
Helper II
Helper II

Help with a html file that contains varying amount of Tables

I have a html file that has multiple tables. The number of tables can change everytime the file is updated and they all have the same structure. 

 

I want to ensure that all tables are loaded, even if the number changes

 

Thanks in Advance

1 ACCEPTED SOLUTION

When you have imported that HTML to this stage

dufoq3_0-1709557221050.png

 

Add this to at the end of your code (replace Your_Previous_Step)

    FilteredRows = Table.SelectRows(Your_Previous_Step, each ([Source] = "Table")),
    Data = Table.Combine(FilteredRows[Data])
in
    Data

 

Result (it will combine all filtered tables dynamicaly)

dufoq3_1-1709557248659.png

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

4 REPLIES 4
BIlix
Helper II
Helper II

https://we.tl/t-XCCGCyNJrU

 

A dummy file with 3 tables. But as i mentioned it could be more or less tables

When you have imported that HTML to this stage

dufoq3_0-1709557221050.png

 

Add this to at the end of your code (replace Your_Previous_Step)

    FilteredRows = Table.SelectRows(Your_Previous_Step, each ([Source] = "Table")),
    Data = Table.Combine(FilteredRows[Data])
in
    Data

 

Result (it will combine all filtered tables dynamicaly)

dufoq3_1-1709557248659.png

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

I got it, thanks a lot!

dufoq3
Super User
Super User

Hi, could you provide that html file (i.e. with dummy data).


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors