cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

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

Accepted Solutions
Highlighted
Super User II
Super User II

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

@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

4 REPLIES 4
Highlighted
Super User II
Super User II

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

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

Highlighted
Helper V
Helper V

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

@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

Highlighted
Super User II
Super User II

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

@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

Highlighted
Helper V
Helper V

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

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

image.png

 

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors