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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello everyone,
To start, I have a huge table with over 10k of entries, which took form somewhat like this.
I need to remove the entire rows on condition based on Column2. Specifically, I want all rows which do not have null for Column2 to be deleted.
Technically speaking, I want something similar to:
myTable2 = Table.SelectRows(myTable1, each ([Column2] = null))OR
myTable2 = Table.RemoveRows(myTable1, each ([Column2] <> null))which are of course not valid M, since both Table.RemoveRows and Table.SelectRows don't work like that.
So my question is, how could I achieve something like those above?
Thanks a lot in advance!
Solved! Go to Solution.
Got it.
Still do what I suggest, but change the generated M code from:
[Column2] <> null and [Column2] <> ""
to:
not ( [Column2] <> null and [Column2] <> "" )
Got it.
Still do what I suggest, but change the generated M code from:
[Column2] <> null and [Column2] <> ""
to:
not ( [Column2] <> null and [Column2] <> "" )
I think if you want to remove rows where column2 is null, just select the down arrow icon next to the column2 name, select Remove Empty, then OK.
Hi @blopez11 , sorry I wasn't being clear enough 🙂 What I want to do is to delete those rows that do not hold null value for column2. For example, after applying the query, rows 8 and 9 should be deleted while rows 1 to 7 are still in the table.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |