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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
vat2do
Helper II
Helper II

delete rows in power bi query editor

Greetings to all

 

Have a quick question.

How to delete/remove rows in a table using powerbi query editor having null values in selected column.

 

Appreciate your reply.

1 ACCEPTED SOLUTION

Hi @vat2do 

Yes. When you  remove blank rows so all the respective complete rows will be deleted.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

7 REPLIES 7
Uzi2019
Super User
Super User

Hi @vat2do 
Open power query > Home tab> manage column section > remove rows > remove blank rows

 

Uzi2019_0-1698906558597.png

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @vat2do 
Did you check my solution???

 

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

let me put my question in this way:

for example.

if column no3 has null values delete all those rows using power query editor

Hi @vat2do 

Yes. When you  remove blank rows so all the respective complete rows will be deleted.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi @vat2do 
You can try below option where complete rows are removed.

 

Uzi2019_0-1698908701249.png

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
mohitkumawat
Super User
Super User

Hi,
If you're in the edit queries screen, you click on the arrow and in the drop-down menu you should be able to click sort ascending or descending. In general the null value should sort on the top, where you can uncheck the null mark. or you can 

  1. Select all the columns you want to test for null on.
  2. In the Add Column ribbon, select Merge Columns with no special delimiter.
  3. Filter that newly Merged column for null, or select the "remove empty" filter. Remove Empty will remove blanks and nulls.
  4. Delete the temporary merged column.

 

mohitkumawat_0-1698906447386.png

 

Thanks for the reply,

What if I need to delete the rows having null value in a specific column of a table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.