I have a sql reporting services report that displays sales from all of our stores etc it includes a column which displays a % to budget value. What I want to do is if the value is >= .35 then make it the background of the cell Green, if the value is < .35 and > .30 then Yellow if the value is < .30 then Red.
It's really doing my head in I just can't seem to get it to work with all 3 ranges.
I can put in the background color properties of the cell the expression:
=IIF(Fields!ID__to_Budget.Value >= 0.35, "Green", "Red")
And that works, but of course I don't have any Yellow range, anything under .35 becomes red.
I have been trying to do a nested expression on the background color like this:
=iif( (Fields!ID__to_Budget.Value >= 0.35), "Green",
( iif(Fields!ID__to_Budget.Value <0.35 and > 0.30, "Yellow",
iif(Fields!ID__to_Budget.Value < 0.30 "Red", "White") ) ) )
but it complains about a syntax error on the "and >0.30" part.
Many thanks Lance