Forum

Loaded Power Query ...
 
Notifications
Clear all

Loaded Power Query Table Is Counting blanks

5 Posts
2 Users
0 Reactions
129 Views
(@tykru)
Posts: 34
Eminent Member
Topic starter
 

After creating a query and loading it to a sheet, I'm trying to use the count feature of Excel to do a quick count in a particular column by highlighting the whole column. However, it is counting blanks, which it doesn't ordinarily do. Is this a glitch or or does it count blanks when created via a query?

Blanks-Counted-1.png

 

Thanks!

 
Posted : 14/05/2018 2:46 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Tykru,

When you look at those blanks in the Power Query editor to the cells contain the word null or are they blank? If they're blank then that means the cells aren't actually empty. They probably contain a non-printing character.

If so, in the Excel worksheet insert a CODE function that references one of those cells e.g. =CODE(A2), and see what code it returns. That is the character you need to 'Find and Replace' in the Power Query editor. I'd copy the contents of the cell to the clipboard so when you open the Power Query editor you can paste it in the 'Find and Replace' dialog box.

If that's not it, then please upload an Excel file containing a sample of your data.

Mynda

 
Posted : 14/05/2018 5:55 pm
(@tykru)
Posts: 34
Eminent Member
Topic starter
 

Mynda,

Thanks for the reply. They are blanks in the Power Query editor. I tried the CODE function and it returned #VALUE! but not sure why it's throwing the error. Attached is a sample of the data. 

Thanks!

 
Posted : 14/05/2018 11:10 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Tykru,

Not sure why those cells are misbehaving, but if you find and replace them in Power Query with null (lower case), it fixes the problem.

Mynda

 
Posted : 15/05/2018 12:02 am
(@tykru)
Posts: 34
Eminent Member
Topic starter
 

That did the trick, Mynda. Thank you!

 
Posted : 15/05/2018 8:32 am
Share: