cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nh27
Frequent Visitor

Removing rows with all null values

Hi All,

 

Currently building a model in Power BI and quite often with data refresh and new files we will have multiple rows where all values are blank but once in Power BI in the query editor they appear as null.

 

My question is, does anyone know of a formulae or a way to remove any rows where all values across that row are null?

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Two options

  1. In Power Query, you apply a filter to the column so that it does not include nulls.
  2. Regardless of the column, you remove rows that are blank. Start menu. Remove Rows option, Remove Blank Rows option.

View solution in original post

3 REPLIES 3
nh27
Frequent Visitor

Thank you all for your help, removing the blank rows worked, however needed to do this at an earlier step in my query editor for it to kick in. It did not seem to want to remove blanks after a number of applied steps for some reason.

v-yalanwu-msft
Community Support
Community Support

Hi, @nh27 ;

You could remove empty in power query ,like below:

vyalanwumsft_0-1628149143872.pngvyalanwumsft_1-1628149182904.png

The final output is shown below:

vyalanwumsft_3-1628149220940.png
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Syndicate_Admin
Administrator
Administrator

Two options

  1. In Power Query, you apply a filter to the column so that it does not include nulls.
  2. Regardless of the column, you remove rows that are blank. Start menu. Remove Rows option, Remove Blank Rows option.

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!