Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Evaluating a boolean properly in a measure

I'm not sure if this is a context issue, or not. I have a "simple" measure like this:


Deviation Calc = 
VAR CurrentVal = [% of Bnch Growth by Cat] 
VAR PercRemainder = [Avg Cat Deviation Value] 
VAR Diff = ABS(PercRemainder - CurrentVal)
VAR IsDependent = [CategoryIsDependent]
VAR __calc = IF( Diff > [Allowed Progam % Deviation], [Allowed Progam % Deviation], Diff)
VAR Result = IF([CategoryIsDependent], __calc, BLANK())
[IsDependent] properly returns True or False in a table visual based on the row's value (and yes I thought through the logic, and it has to converted to a measure because of context).
The goal is if the boolean is false return a blank for that particular row, or return the calculated value (which works fine). The reason is that this measure is to be used to drive conditional formatting, but you can't apply two levels of conditional formatting, so I need a way to exclude certain rows that should not be formatted with the conditional formatting. I'm using a color scale, so I need to keep the values.

Helpful resources

PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.