I need to remove empty rows. This is quite easy, just choose "Remove rows", and then "Remove blank rows" from the meny. This will create the formula:
= Table.SelectRows(#"Added Index", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
But, I have added an Index column, and that column will never be empty. I also have some other columns that is of no importance when evaluating if the row is empty or not.
So I tried to add Record.RemoveFields() to the formula according to below, but that didn't work:
= Table.SelectRows(#"Added Index", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(Record.RemoveFields(_,"Index")), {"", null})))
Any Idea how to remove empty rows based on the values in e.g. columns C1, C2, C3, but not the values in C4 and C5