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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
B_atWork
Frequent Visitor

Split/extract multiple tables from a spreadsheet

I have a spreadsheet that contains scores of tables of survey data analysis. I'd like to find a way to split them out into multiple tables in my data model. I've decribed the format below and added a link to a sample. I've read about the Table.Split function, but there are no set number of rows that I can use for the pageSize. I was thinking if I can calculated the pageSize number by counting the number of rows between two strings I could pull this off, but it seems like Table.Split doesn't work like that. Is there something else I can do, or should I just split out these tables manually? Thanks in advance.

 

Link to file

The format goes like this:

Row 1 is blank

A header in row 2 that reads "Custom Table"

A blank row

A row with a subheader that reads "Notes" followed by a table with data that I don't care about

2 blank rows

A row with a path in the first cell

2 blank rows

A header in the next row that reads "Table 1"

A blank row

A table with data that I care about in the form of a matrix: question responses in the rows, categories in the columns, and numbers in the cells

Another blank row after the table

Another subheader followed by a table with data that I don't care about.

1-3 rows of notes

2 blank rows

Then the process repeats

2 ACCEPTED SOLUTIONS
HotChilli
Community Champion
Community Champion

Did you get the "suggested tables" feature on the Navigator screen (bottom left) when you connect to the Excel spreadsheet?

 

View solution in original post

How did I miss that? Yep, that works. Thank you for pointing that out.

View solution in original post

3 REPLIES 3
HotChilli
Community Champion
Community Champion

The automated code generated is quite impressive.

Also, there's another technique where you go into Excel and define a range on each table and powerbi can recognise that.

Good luck

HotChilli
Community Champion
Community Champion

Did you get the "suggested tables" feature on the Navigator screen (bottom left) when you connect to the Excel spreadsheet?

 

How did I miss that? Yep, that works. Thank you for pointing that out.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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