Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
@ChandeepChhabra has created an amazing video that demonstrates this approach.
Here is a bit adjusted code wrapped in a function (copy/paste ready solution, no need to watch video every time):
= (Source as table, _lColumnNames as list) =>
let
TrueIfContainsColumnnames = Table.AddColumn(Source, "__CustomTemp__", each List.ContainsAll(Record.ToList(_),_lColumnNames)),
SkipTill1stTrue = Table.Skip(TrueIfContainsColumnnames,each [__CustomTemp__]<>true),
RemoveTempColumn = Table.RemoveColumns(SkipTill1stTrue,{"__CustomTemp__"}),
Result = RemoveTempColumn
in
Result
Example:
Problem:
Solution (2nd parameter is a list of column names that uniquely identifies the header row):
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!