Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RenateBK
Helper I
Helper I

How to remove rows where data is missing in specific columns (without using filtering)

Hello, 

 

I have a dataset which is not perfectly cleaned and some rows with wrongful data has been included.

I need to remove these specific rows to avoid confusion and using the "filter" function by just unchecking "null" for the column is not a viable option and removing "blank rows" doesn't work as one cell in the row includes data. 

 

Thus I am wondering if it is possible to create a function where x row will be removed if there is "null" in y column?

 

RenateBK_1-1675251353661.png

(I borrowed the example image from another thread as it illustrates my needs, but doesn't have a solution I can use: https://community.powerbi.com/t5/Desktop/Delete-all-the-row-when-there-is-null-in-one-columns-of-the...)

 

Thank you, 

Renate

2 REPLIES 2
ITManuel
Responsive Resident
Responsive Resident

Hi @RenateBK ,

 

from what I know you can only "remove" rows by filtering them out. What is the issue with filtering blanks on the specific column?

 

You can do that either in PowerQuery or in DAX for the calculations you want to carry our, thus all rows in which there are blanks in the specific column are not present because ignored.

 

Br

The main issue is mostly just consistency as there is a risk that it will be forgotten because I have to filter it out in 10+ different data sets. 

 

However, I think I managed to come up with an easy solution. I simply sort the column with the missing data from "a to z" then I can remove x amount of top rows that's empty without any issue. 

 

Br

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.