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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
luigi86
New Member

Combining excel sheet with different first row

Hello, I receive from time to time an excel  report that consist in a sheet with a tittle in cell A1 and then a table ( not really a table) with common headers from row 6 

My idea is to shave all this excel files in a folder so then I can combine them all together in Power Query . deleting top 5 rows. 

The problem is the tittle is always different and Power Query reads the first row as header. 

Is there is a way to combine them without first row as a header , so I then can delete top rows and make a combined table 

luigi86_0-1723114999442.png

thanks 

 

1 ACCEPTED SOLUTION
dufoq3
Super User
Super User

Hi @luigi86, you can also remove top columns dynamically

 

Before

dufoq3_0-1723189883291.png

 

After

dufoq3_2-1723190128437.png

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkmtKFFITEpW0lECoVidaCXsTEMjYyReiGOwN5AdHOIYFAKkXUqLEksy8/MUNFISK4s1wUpKDIESllYGBkDKCCJiBGQaGkCEjJGEDCFCpkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Some Title" = _t, Column1 = _t, Column2 = _t]),
    RemovedTopRowsDynamic = Table.Skip(Source, each Record.Field(_, Table.ColumnNames(Source){0}) <> "TASK")
in
    RemovedTopRowsDynamic

 


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

2 REPLIES 2
dufoq3
Super User
Super User

Hi @luigi86, you can also remove top columns dynamically

 

Before

dufoq3_0-1723189883291.png

 

After

dufoq3_2-1723190128437.png

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCkmtKFFITEpW0lECoVidaCXsTEMjYyReiGOwN5AdHOIYFAKkXUqLEksy8/MUNFISK4s1wUpKDIESllYGBkDKCCJiBGQaGkCEjJGEDCFCpkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Some Title" = _t, Column1 = _t, Column2 = _t]),
    RemovedTopRowsDynamic = Table.Skip(Source, each Record.Field(_, Table.ColumnNames(Source){0}) <> "TASK")
in
    RemovedTopRowsDynamic

 


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

BA_Pete
Super User
Super User

Hi @luigi86 ,

 

Bring in your files to combine them ignoring the preview that you've shown here. Once you've brought in your files and gone into Load & Transform, find the 'Transform Sample File' query in the Helper Queries that Power Query sets up for you. Within that query, you should see a step called 'Promoted Headers' just under the Source/Navigation steps. Delete this step and the files should now come through as you need.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.