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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
avisingh
Advocate III
Advocate III

TRUE/FALSE Measures Cannot Be Used in Filter Pane

I defined a True/False Mesure in my model.

  • Customer Rank To Be Shown = [Customer Rank] <= [Selected Top N]

But you can also simply use a Dummy measure

  • TrueFalseMeasure = IF(1=2, TRUE, FALSE)

 

Either way, for any Measure of True/False type it seems we cannot use it in the Filter pane (see screenshot)

 

20181104_True_False_Measure_Filter.png

3 REPLIES 3
gvg
Post Prodigy
Post Prodigy

Four years on Microsoft can not solve this small issue ... Using 0 or 1 for FALSE/TRUE as a remedy is quite expensive in large data bases.

Juerg
Regular Visitor

Hi @avisingh 

 

Just found an easy workaround for the issue.

 

Use 1 for TRUE and 0 for FALSE in the DAX measure and then "is 1" in the filter 😉


 

v-qiuyu-msft
Community Support
Community Support

Hi @avisingh,

 

From your description, it seems you are dragging the measures Customer Rank To Be Shown and TrueFalseMeasure to a visual then these two measures display in Visual Level Filters pane, right? 

 

From this article, you can see:

 

You can add a filter to a specific visual in two different ways (aka, a "visual filter").

  • Filter a field that is already being used by the visualization.
  • Identify a field that is not already being used by the visualization, and add that field directly to the Visual level filters bucket.

We can only set filter condition based on a field rather than measure in Visual Level filter pane. In your scenario, you can create calculated columns with the same DAX then drag into the visual, then you can set filter condition. 

 

Best Regards,
Qiuyun Yu 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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