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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create Visual Level Filter to take out "Blank" values which may be empty strings

I have a table that one field has a bunch of blank values and I would like to remove those rows. Putting a filter in of "is not blank" makes no difference as I believe these are empty strings, or possibly even a space.

 

1) How do I create a visual level filter to take out rows with empty strings?

 

2) When I try to use "is not" and then put in a space, when I click apply it resets the filter, so how do I create a visual level filter to remove rows where a field is just a space?

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

It might be a zero-length string.

Create a new column like this

new column=

Switch( true(),

isblank([column]) , "NA"

[column]="","NA",

[column])

 

And filter on NA

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

It might be a zero-length string.

Create a new column like this

new column=

Switch( true(),

isblank([column]) , "NA"

[column]="","NA",

[column])

 

And filter on NA

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


@amitchandak wrote:

It might be a zero-length string.

Create a new column like this

new column=

Switch( true(),

isblank([column]) , "NA"

[column]="","NA",

[column])

 

And filter on NA


This works and is how I will do it for now (I am just using isBlank instead of NA as NA could be an actual value inserted). Just a note, you missed a comma after isblank([column]) , "NA"

 

It is a pity though that this can't be done at a visual filter level thought, would be way quicker. Maybe they could add an empty string or no value field to the is and is not to give that filter a little more depth?

Greg_Deckler
Community Champion
Community Champion

Should be able to just use basic filtering and uncheck the boxes for the blank/blanks?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable


@Greg_Deckler wrote:

Should be able to just use basic filtering and uncheck the boxes for the blank/blanks?


No, this will not work as it is filtering on what is needed and whats not needed. By selecting everything except for whats not needed, when the data is refreshed, if any new values come through (and this is invoice number, so that will happen), it won't select them and your results will not include anything new.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors