Forum Discussion
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?
9 Replies
- MFelix
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
- AnonymousNot 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.
- amitchandak
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- AnonymousNot 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!
- v-lili6-msft
Community Support
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 QUeriesPower bi data viewSecond, 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
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