custom colors in matrix


report in matrix needs show amount of hours user. there 2 row groups (user , project in parent child order) , in column groups month, weed, day (also in same order previous)

 

need create color notification following criteria.. when operating time on daily basis = 8 hours = green; when les 8 hours red ; , more 8 hours yellow.

 

i tried this:

 

= iif ((inscope ("calendardate"), switch (sum (fields! time.value) = 28000, "seagreen"

, sum (fields! time.value)> 28800, "yellow"

, sum (fields! time.value) <28800, "red"), "seagreen")

 

problem data in 2 groups, when group ("calendardate") expanded color scheme visible group group user ,  ("username") group. want color notification shown when group ("calendardate") expanded.

 

this option did not give result:

 

  = iif ((inscope ("calendardate") , inscope ("project")), switch (sum (fields! time.value) = 28000, "seagreen"

, sum (fields! time.value)> 28800, "yellow"

, sum (fields! time.value) <28800, "red"), "seagreen")

 

is there solution?

 

thanks in advance.

 

marko hm


marko_hm

hi marko_hm,

thanks post.

according description, use group (“calendardate”)’s togglestate to control when show color notification. know, there no way available obtain togglestate property of relevant group textbox, design, can decide color notification shown when group (“calendardate”) expanded.  

as workaround, maybe can try specify background expression detail cells within group ("calendardate") have try, can press ctrl , select detail cells within group ("calendardate"), release ctrl key , press f4, scroll background property, specify expression below: switch (sum (fields! time.value) = 28000, "seagreen", sum (fields! time.value)> 28800, "yellow", sum (fields! time.value) <28800, "red"). moreover, if want hide details rows when toggle state of relevant group collapse, can add group header relevant group.

thanks,
bill lu


please remember mark replies answers if , unmark them if provide no help.


SQL Server  >  SQL Server Reporting Services, Power View



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........