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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Tom_G
Helper II
Helper II

Measure should evaluate to True if any selected value is True

Hello

 

I have a visual table like the following which is filtered by a shop slicer. The Measure is supposed to show TRUE if a shop is open more than 60% of the hours in a month.

ShopOpen HoursRemaining Monthly HoursMeasure 
Shop A148596FALSE
Shop B463281TRUE
TOTAL611877FALSE

 

What I need is a measure that evaluates the total to TRUE if one of the selected fields evaluates to TRUE. Here the measure evaluates to False because the total of Open Hours is not 60% of the total number of hours in 2 months. 

 

The measure I currently have is this

 

Measure = Sum of Open hours measure >=([Sum of Open Hours measure + Sum of Remaining monthly hours measure])/100*60

 

 Any ideas how I can change this to make it work?

 

Any help much appreciated!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Tom_G ,

Please create another measure as below to replace the current measure in visual:

Measure2 = MAXX ( VALUES ( 'Shop'[Shop] ), IF ( [Measure] = TRUE (), "True", "False" ) )

yingyinr_0-1621417488568.png

Best Regards

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Tom_G ,

Please create another measure as below to replace the current measure in visual:

Measure2 = MAXX ( VALUES ( 'Shop'[Shop] ), IF ( [Measure] = TRUE (), "True", "False" ) )

yingyinr_0-1621417488568.png

Best Regards

Hi @Anonymous - that works very well. Thanks a lot for your help!

selimovd
Super User
Super User

Hey @Tom_G ,

 

your question is a little confusing.

Is [Measure] a calculated column or a measure?

 

"Sum of a measure" doesn't work in DAX in a measure. Please post the actual formula of your [Measure] and not some pseudocode.

 

And then please give an example how your result should look like. To be hones, I didn't understand what you want to achieve or what doesn't work.

 

Thank you and best regards

Denis

Hi @selimovd , sorry if it wasn't clear. The Measure is a measure.
To give some more detail - the sum of open hours measure = CALCULATE(SUM(TableColumn(OpenHours).

Sum of Remaining monthly hours is basically Monthly Hours Measure - sum of open hours measure

Monthly Hours Measure = CALCULATE(SUM(TableColumn(MonthlyHours).

 

What I want is a card that displays TRUE even when Shop A and Shop B are filtered because Shop A evaluated to TRUE. Hope this is clear. Thanks

@Tom_G 

 

And what is the formula for [Measure] that returns true or false?

Hi @selimovd 

 

The formula for the measure that returns true or false is 

Measure = Sum of Open hours measure >=([Sum of Open Hours measure + Sum of Remaining monthly hours measure])/100*60

So it is a measure built upon other measures previously explained. I think the issue is that though the visual is slicing the data by shop the measure is summing the total hours and remaining hours.

Therefore when multiple shops are selected in the slicer it looks at whether the total number of hours for the shops selected is greater than or equal to 60% of the total selected hours. 

How to make the measure work on the principle that if only one of the selected shops is open more than 60% of hours in the time period, it returns TRUE?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors