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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ericOnline
Post Patron
Post Patron

Blanks that aren't BLANK(), nor null, nor empty strings (""). What are they?

I'm trying to filter out what I think are blank values from a list. Unfortunately, they dont' show as Blank(), don't show as "null" and don't seem to be empty strings ("").

How do I determine the datatype of these values?

How would I eliminate them from the data using DAX?

image.png

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@ericOnline 

how did you understand this is not the "" ?

try, like

Column = 
SWITCH(TRUE(),
ISBLANK([ID]), "1",
[ID] = "", "2",
"Other")

also it will be a good idea to look at data source in Power Query. Does look the same?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

5 REPLIES 5
Arielcchy
Advocate II
Advocate II

Thought this has been solved, there is a way to find out in Power Query.

If you go to one of those mistery rows > right click > replace values, it will automatic identify its content and fill it into "Value To Find".

Hope this help.

az38
Community Champion
Community Champion

Hi @ericOnline 

it maybe a space or a few spaces in row, for example.

to debug create a calculated column

 

debug = LEN([ID])

 

the better way is to execute trim operation for this column in Power Query Editor mode

also try ISTEXT() or ISNUMBER() functions to understand data type

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 thanks for the idea. What do you make of these results?

- I filtered by Blank(?) value

- Created a new calculated column

Results:

image.png

 

image.png

az38
Community Champion
Community Champion

@ericOnline 

how did you understand this is not the "" ?

try, like

Column = 
SWITCH(TRUE(),
ISBLANK([ID]), "1",
[ID] = "", "2",
"Other")

also it will be a good idea to look at data source in Power Query. Does look the same?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Nice! @az38 thanks for this debugging tip. You were right, it was an empty string:

image.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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