I tried this snippet in Excel/Power Query to find empty and constant columns in my table:
However, when I use this with about 60 columns and 50.000 rows, Excel stalls and I have to kill it via task manager.
Any suggestions to do this more performant?
Thanks, Redoute
Code:
delcols =
List.Select(
Table.ColumnNames(previous_step),
each List.Count(
List.Distinct(
Table.Column(previous_step, _))) <= 1),
However, when I use this with about 60 columns and 50.000 rows, Excel stalls and I have to kill it via task manager.
Any suggestions to do this more performant?
Thanks, Redoute