Link to home
Start Free TrialLog in
Avatar of Roxanne25
Roxanne25

asked on

Dynamic Font Color Problem ~ Business Intelligence Studio

Hi, I'm trying to add a dynamic font color to a percent field.  If the percent is less than 10% I'd like the font color to be red and if its over 10, black.  

I put the following expression in the font color property:
=iif(Sum(Fields!dailymarginpct.Value, "ABookedDailyMarginPct") < 10,"Red","Black")
*I tried doing the value at 10 and .10 since its a decimal value before its formatted.

However, when I try to preview the report I get the following error:
[rsInvalidBooleanConstant] The Hidden expression for the textbox ‘dailymarginpct’ has the value “”, which is not a valid Boolean value.

Anybody help me with this?
ASKER CERTIFIED SOLUTION
Avatar of PFrog
PFrog
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Roxanne25
Roxanne25

ASKER

Ah ok... thanks I didn't realize that's what it was saying.  That fixed it.