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 have a table with four columns, some of the rows are entirely blank but I want to remove only those rows where every column is null. How do I do this?
Solved! Go to Solution.
Hi,
you can just use the remove blank rows option.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi,
you can just use the remove blank rows option.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
To remove only the rows where every column is null, you can use the following SQL query:
DELETE FROM your_table
WHERE column1 IS NULL
AND column2 IS NULL
AND column3 IS NULL
AND column4 IS NULL
This query will delete all rows where every column is null. If a row has at least one non-null value in any of the columns, it will not be deleted.
Alternatively, if you want to keep the original table intact and just display the rows with non-null values, you can use the following SQL query:
SELECT * FROM your_table
WHERE NOT (column1 IS NULL
AND column2 IS NULL
AND column3 IS NULL
AND column4 IS NULL)
This query will select all rows where at least one column has a non-null value. The NOT operator negates the condition that every column is null, so only rows that satisfy this condition will be displayed.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |