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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
EMN
Regular Visitor

Why am I getting inconsistent "null" values in Power Query?

EMN_0-1734452299541.png

I have a table in Excel with 18 columns. All of these columns have formulas in them. There are values in all column cells up to row 18.
When I load this sheet into Power Bi, the 13th and 14th columns will show some "null" values from rows 19 onwards. There is nothing but formulas in these blank and null cells but for some reason null shows in these columns:

EMN_1-1734452563917.png

 

This causes me problems, as when I import the data via a folder, a "Source" column will be added (listing the file name) and it will fill down to the rows that show "null" in columns 13 and 14.

This means if I go to delete all "blank rows" it wont delete the rows that have "null" in columns 13 and 14. 

 

How do I get Power Query to stop showing "null" in these blank columns? 

1 ACCEPTED SOLUTION
v-linhuizh-msft
Community Support
Community Support

Thanks for the replies from Tahreem24 and POSPOS.

 

Hi @EMN ,

 

Based on the image provided, you can choose to remove the bottom 11 rows or keep the top 18 row instead of choosing to delete the blank rows.

vlinhuizhmsft_1-1734488859575.png

vlinhuizhmsft_2-1734488893152.png

 

You can filter out values that are not null:

vlinhuizhmsft_3-1734489068283.png

 

Result:

vlinhuizhmsft_4-1734489192982.png

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-linhuizh-msft
Community Support
Community Support

Thanks for the replies from Tahreem24 and POSPOS.

 

Hi @EMN ,

 

Based on the image provided, you can choose to remove the bottom 11 rows or keep the top 18 row instead of choosing to delete the blank rows.

vlinhuizhmsft_1-1734488859575.png

vlinhuizhmsft_2-1734488893152.png

 

You can filter out values that are not null:

vlinhuizhmsft_3-1734489068283.png

 

Result:

vlinhuizhmsft_4-1734489192982.png

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Thank you very much, all of these replies were helpful but this one has solved it for me! Appreciate your speedy and detailed assistance 🙂

POSPOS
Post Patron
Post Patron

@EMN  -  You can try to remove the formula from the blank cells from Row 19 as your data is only up to row 18.
This will get rid of the null rows

Tahreem24
Super User
Super User

@EMN IN home tab of Power Query use the "Remove blank" rows option in your scenario.

 

Tahreem24_0-1734452937371.png

 

 

 

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

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

That doesn't remove them - this is the problem. When I import the data via a folder, a "Source.Name" column will be added (listing the file name) and it will automatically fill down to the rows that show "null" in columns 13 and 14.

This means if I go to delete all "blank rows" it wont delete the rows that have "null". I shifted the columns along to show, the file name is "generic_testplan_v3_experiments_withdummydata"; this column is added and populated automatically when I "Combine and Transform" the data. It populates upto the same number of rows that show "null" value, so I need the null value not to show in the first place:

EMN_0-1734453987878.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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