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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Data showing blank and null

Dears,

 

I've got a strange thing.

The data input is MySQL database. The Part Number column contains "Blank" and the ons look blank.  The "Blank" is really null, so IsBlank() returns "True". However, the cells look like blank, the IsBlank () result is "Flase", but len() returns 0. I'm so confued about this.

Could anyone help me with this?

 

2020-01-16 16-54-37_Search.png2020-01-16 16-56-01_Search.png

9 REPLIES 9
amitchandak
Super User
Super User

Check for empty string

count(countrrows(table),table[part_number] = "")

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi, @amitchandak 

As you suggested, I create a new measure to count rows. Yes! The cells can be filtered by this measure: 

Measure = countrows (FILTER('Query','Query'[Part Number]=""))

 

But, why does the isblank() returns False and True, not True for all cells? I also want to know how does this situation occur, and then we can avoid this in the database.

 

Thank you so much!


2020-01-17 09-44-21_Search.png

HI @Anonymous 

First, for the problem why (Blank) and "" in the data filter in edit queries, that means there are blank(null) value in this column and the cell which has space character in the cell, and when you apply the query into power bi data view, they all will be balnk

For example:
Edit QUeriesEdit QUeriesPower bi data viewPower bi data view

 

Second, for why (Blank)  and "" will in a slicer together. So (Blank) will be in a slicer.

You must have create a relationship with other tables, please see this post for details

https://community.powerbi.com/t5/Desktop/Slicer-showing-Blank-as-a-value-when-data-does-not-have-any/td-p/301617

and (Blank) in the slicer is to filter the data that in other tables which has no related data in 'Query' table, and "" is the data value in 'Query' table which is blank value.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks, @v-lili6-msft 

 

The (Blank) and (Null) cells are both in edit Query and Power BI  data view, we can see two of them.  And moreover, there's only 1 table in this Power BI file.
2020-01-17 14-11-26_Start.png  2020-01-17 14-14-22_Search.png

 

 

However, space character can be calculated by Len(), as following screenshot. But the Len((blank) cells) returns 0. What's can be space characters?

2020-01-17 14-27-31_Start.png

hi @Anonymous 

Could you please share your sample pbix file for us have a test.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks, @v-lili6-msft 

 

This's from database, it's not allowed to send out of the company. However, when I copy the data into Excel, all the (Blank) and (null) cells turn out to be (null), it's confusing. I can only keep them now. 

Hi @Anonymous ,

 

Just to check what is the information you have on that cell on the query editor make a filter on that column by that "blank" value then rigth click the cell and replace by a zero or something else then check on the formula bar what sort of information it was place on the values being replace if it's "", blank  or something similar.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @Anonymous ,

 

Onthe query editor try to find that specif record and make replacemente by null and see it works to make it blank.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi, @MFelix 

 

Thank you.
These cells are not really null, so Replace Values doesn't work for them. And I even don't know what's in these cells.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors