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
ramit-rulz
Frequent Visitor

Selecting a false filter on a BIT field includes blanks

I have imported a BIT field from Sql Server to my PowerBI model. The possible values for this field in the database are true, false or blank (null).

 

The imported field is in PowerBI has type true/false.

 

When this true/false field is used in a filter for a visual all 3 values (blank, true and false) appear in the filter pane. But, selecting false filter value filters the data to include both false and blank values (screenshot below)

 

image.png

 

 As the only selected value in the filter is "false", and the "filters affecting this visual" also displays only "false", I would expect data to be filtered to include only false values and not blanks.

 

Is this the expected behavior in PowerBI or is this a bug?

 

The same behavior is observed in PowerBI Desktop as well as PowerBI Service.

 

PowerBI Desktop Version: 2.79.5768.1082 64-bit (March 2020)

 

 

 

 

 
 
 
 
1 ACCEPTED SOLUTION

@ramit-rulz 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Issues/Slicer-for-boolean-value-also-shows-quot-Blank-quot-entries-...

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

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Fairly certain this is by design. 0, blank, null all tend to be considered "false" (think on or off) in lots of different languages or contexts. Not sure I can point you to a definitive source for this.

 

https://docs.microsoft.com/en-us/dax/dax-overview


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

The developer in me agrees with you, but this looks misleading to the business user using the report. If 3 values are displayed in the filter, its expected that the data will be filtered only for the selected value(s). 

It would be more intuitive if the filter displayed just 2 values (true/false) if that is how the filter is getting applied.

@ramit-rulz 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Issues/Slicer-for-boolean-value-also-shows-quot-Blank-quot-entries-...

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

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.

Top Solution Authors