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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Filtering on flag fields

I have a column called (Flag Deleted). It is data type true/false and contains 3 unique values True, False and Blank. Using this column as a field to filter on does weird things. When selecting false, a certain KPI re-calculates to consider only non-deleted records because we selected false. However, it still takes the blank values into consideration, which is not desired.

I suspected this to be an issue with the true/false data type, but when converting it to a numeric data type (1, 0 and blank) the issue still persisted. When converting it to a text value, only then the issue was resolved.

 

Could someone point me in the right direction why Power BI is reacting this way?

The users are unable to filter out records that are ONLY false because it will always include blank.

2 REPLIES 2
johnt75
Super User
Super User

I think its because of the way the equality operator works. 0 = BLANK() and FALSE() = BLANK() both return true. You could try replacing blanks with -1, that would let you filter for either 1, 0 or -1

Anonymous
Not applicable

I did not know about the them being equal to eachother. However, if you select BLANK() in the filter, you do only get the blank values, not the false ones. It's only the case other way around.

2022-09-14_08h16_19.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors