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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.