Hi!
I have a report with a table that has a single grouping. Each group may have one, or two, or more rows. I need all the rows in a group to be one color, but I need the color of the entire group to alternate from one group to the next, between gray and white. I was able to do this in SSRS 2005 using RunningValue, but I can't figure out how to do it in SSRS 2008.
Again, it really should be simple. For Group 1, all rows in this group should white; Group 2, all rows in this group should be gray; Group 3, all rows in this group should be white, etc.
To clarify; I am not trying to color alternate rows!!! I know how to do that using row number. I am trying to color all the rows in alternate groups.
My group is called: grpGroupID, if that helps.
What I need is the specific expression and where to place that expression. That is, do I place the same expression in the detail columns as the groupby column?
There is no group header or footer. The GroupID is the first column on the left and it is the Groupby field of the group.
Group 1 134.89 Bicycle
Group 2 123.12 Helmet
89.23 gloves
Group 3 768.32 treadmill
78.09 monitor
Group 4 33.23 step counter
Group 5 19.99 earrphones
3.45 energy gum
What I want is for group 1 to be white, both rows in group 2 to be gray, both rows in group 3 to be white, the row in group 4 to be gray, and the two group five rows, white.
In other words, Odd groups white, even groups gray.
I've tried using the following expression by highlight the entire row and placing it in the Background color property, but the color isn't changing for any row. It is remaining white. I have the feeling ths formula isn't meant to control the color at the group level, but the rows within the group somehow, as though the countdistinct isn't really counting the distinct occurrences of the group-by value at the group level or something.
=IIF(RunningValue(Fields!GroupID.value,
CountDistinct, "grpGroupID") Mod 2, "White","Gainsboro")
I'd really appreciate any help anyone can provide. Nothing I've tried is working.
Thanks!