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
NickProp28
Post Partisan
Post Partisan

Remove the rows when both of the column is null

Dear Community,

 

I retrieved data from company DB, but since its huge data and lots of information. So I did an example in excel file then import to BI.

Here's my data set example:

NickProp28_0-1615366750354.png

I want to remove the rows which consignee and consignor column is having null value. (If not remove, it will affect my later calculation part)

I try to use query editor remove 'null' in Consignee, but in result all the null in Consignee has been remove while there might have data in Consignor. 

NickProp28_0-1615366948048.png

 

Here's the pbix: https://ufile.io/govbkbdh

Grateful for any help & thanks for the attention. 

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @NickProp28 

 

You want to remove both columns are null, insert a step after your current step on the right Applied Steps

Table.SelectRows( yourPreviousStep, each not ( [yourColumn1] = null  and [yourColumn2] = null))

 

View solution in original post

1 REPLY 1
Vera_33
Resident Rockstar
Resident Rockstar

Hi @NickProp28 

 

You want to remove both columns are null, insert a step after your current step on the right Applied Steps

Table.SelectRows( yourPreviousStep, each not ( [yourColumn1] = null  and [yourColumn2] = null))

 

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.