Showing posts with label Green bar. Show all posts
Showing posts with label Green bar. Show all posts
Tuesday, 6 May 2014
Green bar for a group header - SSRS
=IIF(RunningValue(Fields!xxx.Value,COUNTDISTINCT,NOTHING) MOD 2 = 1,
"White","PaleGreen")
=iif(RunningValue(Fields!xxx. Value,CountDistinct,"parentgroupname") Mod 2,"WhiteSmoke","White")
Wednesday, 8 August 2012
Useful SSRS expression syntax
=IIF(Fields!a.value>100, True, False)
--------------------------------------------------------
=IIF(Fields!a.value >=10, "Green", IIF(Fields!a.value >=1, "Blue", "Red"))
values >=10 are green, between 1 & 9 are blue, less than 1 are red
--------------------------------------------------------
=SWITCH(
Fields!a.value >=10, "green",
Fields!a.value >=1, "blue",
Fields!a.value = 1, "yellow",
Fields!a.value <=0, "Red")
>=10 are green, between 1 & 9 blue, =1 yellow, <=0 red
--------------------------------------------------------
SWITCH function finds the first expression that's true. It will not catch errors further along.
IIF function evaluates all parts of the expression.
--------------------------------------------------------
=IIF(Rownumber("scope") Mod 2 = 0, "Khaki", "White")
set "scope" to reset row colours for every group
--------------------------------------------------------
--------------------------------------------------------
=IIF(Fields!a.value >=10, "Green", IIF(Fields!a.value >=1, "Blue", "Red"))
values >=10 are green, between 1 & 9 are blue, less than 1 are red
--------------------------------------------------------
=SWITCH(
Fields!a.value >=10, "green",
Fields!a.value >=1, "blue",
Fields!a.value = 1, "yellow",
Fields!a.value <=0, "Red")
>=10 are green, between 1 & 9 blue, =1 yellow, <=0 red
--------------------------------------------------------
SWITCH function finds the first expression that's true. It will not catch errors further along.
IIF function evaluates all parts of the expression.
--------------------------------------------------------
=IIF(Rownumber("scope") Mod 2 = 0, "Khaki", "White")
set "scope" to reset row colours for every group
--------------------------------------------------------
Tuesday, 20 April 2010
Green bar matrix report - SSRS

I was recently asked by an anonymous blog poster (if reading please identify yourself!) how to go about creating a 'green-bar' style cross-tab/matrix report in both Crystal and SSRS.
Here's how to do it in SSRS (Cystal to follow at a later date):
1) Create an inner row grouping, in this case named 'Count' and given a grouping expression of =1

2) for the cell 'Count', set the property Value =iif(RunningValue(Fields!REFERENCE.Value,CountDistinct,Nothing) Mod 2, "PowderBlue", "White")
3) for the cell 'Count', set the property BackgroundColor =value

4) for the matrix data cell, named 'STATUS', set the property BackgroundColor =ReportItems!count.Value

5) for the outer row grouping, named 'TITLE, set the property BackgroundColor =iif(RunningValue(Fields!REFERENCE.Value,CountDistinct,Nothing) Mod 2, "PowderBlue", "White")

6) To hide the inner row grouping cell, 'Count', set
the following properties:
-set width to a minimum
-set BorderStyle Left =None
-set Color =value
-set CanGrow =False
set FontSize =1pt
for the outer row grouping cell:
-set BorderStyle Right =None


Friday, 21 August 2009
Green bar report - CR
If(RecordNumber Mod 2=0)
then crGreen
else DefaultAttribute
Note: Record Number can be replaced with GroupNumber to alternate Group row colours
then crGreen
else DefaultAttribute
Note: Record Number can be replaced with GroupNumber to alternate Group row colours
Labels:
Alternate rows,
CR,
Green bar,
GroupNumber,
If,
Mod
Thursday, 20 August 2009
Subscribe to:
Posts (Atom)