Power Query, Zeilen ohne leere Felder selektieren, Expression.Evaluate
Language M Code,
neue leere Abfrage erstellen und Code reinkopieren
--- SCHNIPP ---
let
Source = Excel.CurrentWorkbook(){[Name="Tabelle1"]}[Content],
Custom1 = Table.FromList(Table.ColumnNames(Source)),
Text = Table.AddColumn(Custom1, "Text", each "["&[Column1]&"] <> null"),
Expression = Text.Combine(Text[Text], " and "),
Evaluate = Table.SelectRows(Source, each Expression.Evaluate(Expression, [_ = _]))
in
Evaluate
--- SCHNAPP ---
Quelle:
--- SCHNIPP --- fxNonNullColumns
(tblInputTable as table) =>
let
TabelleOhneNullSpalten = Table.SelectColumns(tblInputTable, List.Select(Table.ColumnNames(tblInputTable), each List.NonNullCount(Table.ToColumns(Table.SelectColumns(tblInputTable, _)){0})>0))
in
TabelleOhneNullSpalten
--- SCHNAPP ---
Kommentare
Kommentar veröffentlichen