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

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
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.