This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. 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):
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.