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.
Author |
Topic |
Sql_starter
Starting Member
3 Posts |
Posted - 2010-05-05 : 11:59:48
|
I need to change the background color in my report for employees hours over 50, however this is a toggled item within a bigger project hours.How would I phrase the IIF statement to reflect? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-05-05 : 15:01:28
|
something like belowIIF(Fields!emphours.value > 50,"red","Black")i assume field name is emphours. you need replace it with actual field. also the above has to be set for background color property------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
Sql_starter
Starting Member
3 Posts |
Posted - 2010-05-05 : 15:40:48
|
This works only to highlight all the fields. These fields I am using this IIF statement is in a column group. Basically the employee is toggled to open up the indiviual hours, and I only want the indiv hours to be highlighted when over 50. But when not expanded the hours are the project total hours and not to be highlighted. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-05-06 : 13:35:34
|
sorry i didnt get u. can you show screen shot?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
Sql_starter
Starting Member
3 Posts |
Posted - 2010-05-07 : 11:01:35
|
Sorry to get back with you so late...but unfortunately I cannot as it has some confidential and sensative information within. It made all backgrounds red and not sure why...even the under 50. In a nutsell, I would like to see this report with total project hours, then toggle the employee within each project. When I toggle it will indicate the total hours by each employee with that project for the next year (column group). I would then like to see everyone who have worked over 50 hours to be highlighted red (the hours only) Hope this makes sense. Thanks for your help. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-05-07 : 13:39:22
|
so are you doing sum inside expression? then you need to use same expression for condition check inside background color property.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|