Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I am using the following to change cell colors under background color=IIf(Fields!EndPoint.Value="Total Sales Division" or Fields!EndPoint.Value="Total End Point" or Fields!EndPoint.Value="Total IP-Relay" or Fields!EndPoint.Value="Total ClearCaptions","CornflowerBlue",iif(Fields!Projection.Value="Actual","LimeGreen","LightBlue" ))I am also using this express to handle blank cells =iif(isnothing(Sum(Fields!MnthSum.Value)),0,Sum(Fields!MnthSum.Value))The background does not apply the CornflowerBlue where 0 are inserted it goes to light blue in this example. Do I need to build in my second formula into by back ground? How do I do that. The background is working where is am not using isnothing. Thanks in advance .
Villanuev
Constraint Violating Yak Guru
478 Posts
Posted - 2014-07-07 : 22:46:53
Can you try this approach. right click the textbox properties. Under Fill color expression put this codes.You can modify this codes based on your requirements.
=Switch(Fields!EndPoint.Value="Total Sales Division" or Fields!EndPoint.Value="Total End Point" or Fields!EndPoint.Value="Total IP-Relay" or Fields!EndPoint.Value="Total ClearCaptions","CornflowerBlue",Fields!Projection.Value="Actual","LimeGreen","LightBlue")