Forum Discussion

vat2do's avatar
vat2do
Icon for Helper III rankHelper III
2 years ago
Solved

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.

  • Hi vat2do 

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

     

     

7 Replies

  • mohitkumawat's avatar
    mohitkumawat
    Icon for Impactful Individual rankImpactful Individual

    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.

     

     

    • vat2do's avatar
      vat2do
      Icon for Helper III rankHelper III

      Thanks for the reply,

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

  • Uzi2019's avatar
    Uzi2019
    Icon for Community Champion rankCommunity Champion

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

     

     

     

     

      • vat2do's avatar
        vat2do
        Icon for Helper III rankHelper III

        let me put my question in this way:

        for example.

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