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
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
Solved! Go to Solution.
I must have done a typo when I tried my own solution
Having a table (Table1) with columns C1, C2, C3, C4, C5. And you would like filter out the none empty rows based on columns C1, C2, C3, you can use the formula below:
= Table.SelectRows(#"Table1", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(Record.RemoveFields(_,{"C4", "C5"})), {"", null})))
Fun to sometimes be able to answer your own questions...
I must have done a typo when I tried my own solution
Having a table (Table1) with columns C1, C2, C3, C4, C5. And you would like filter out the none empty rows based on columns C1, C2, C3, you can use the formula below:
= Table.SelectRows(#"Table1", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(Record.RemoveFields(_,{"C4", "C5"})), {"", null})))
Fun to sometimes be able to answer your own questions...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 46 | |
| 44 | |
| 27 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |