Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Alternate group row color with multiple groups Post Reply Post New Topic
<< Prev Page  of 2
Author Message
elie234
Groupie
Groupie


Joined: 21 Aug 2009
Online Status: Offline
Posts: 68
Quote elie234 Replybullet Posted: 25 Sep 2009 at 12:08pm
I get an error in the background color formula saying to please contact Business Objects! Haven't gotten that one before. Sounds bad.
IP IP Logged
elie234
Groupie
Groupie


Joined: 21 Aug 2009
Online Status: Offline
Posts: 68
Quote elie234 Replybullet Posted: 25 Sep 2009 at 12:09pm
That was on the Running total suggestion btw.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Sep 2009 at 12:10pm

if you place the RT field on the report canvas on GF5 and GF6 (without color change formula use) is it working as you want it to or are you getting an error (or incorrect #'s)?



Edited by DBlank - 25 Sep 2009 at 12:11pm
IP IP Logged
elie234
Groupie
Groupie


Joined: 21 Aug 2009
Online Status: Offline
Posts: 68
Quote elie234 Replybullet Posted: 25 Sep 2009 at 12:14pm
tried the shared variable approach..i get shading but it is not alternating correctly..will retry running total
IP IP Logged
elie234
Groupie
Groupie


Joined: 21 Aug 2009
Online Status: Offline
Posts: 68
Quote elie234 Replybullet Posted: 25 Sep 2009 at 12:18pm
when i put the rt formula in GF6 and GF5 I get numbers but incorrect ones.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Sep 2009 at 12:22pm
what are you getting?
If you post some actual grouped data it may help explain.
You may need to bump my suggesstion up to using group level 4 field.
Likely you just need to tweak either of our suggestions to get it to give the correct increment changes. Leave the RT or variables on the canvas and make the changes to see when you get the right combination.
It is hard to tell you what will work without knowing the actual report data and how the grouping is working on this. I am also going under the assumptiont that you always have a 1:1 relationship in group 5 and 6. If not I think there is a logical issue in how you want to color this or I am misunderstanding something about your design and desired output.


Edited by DBlank - 25 Sep 2009 at 12:24pm
IP IP Logged
elie234
Groupie
Groupie


Joined: 21 Aug 2009
Online Status: Offline
Posts: 68
Quote elie234 Replybullet Posted: 25 Sep 2009 at 12:29pm
5 and 6 are always displayed in pairs. The desired output is to alternate shading of pairs of 5 and 6. (6-5 not shaded, 6-5 shaded, 6-5 not shaded).
Sample data for running total field:
GF 6:       2
GF 5:       2
GF 6:       4
GF 5:       4
GF 6:       6
GF 5:       6
GF 6:       22
GF 5:       22
GF 6:       36
GF 5:       36
Goes on to pairs of 60, 71
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Sep 2009 at 12:41pm

try it using G6 field. Sorry but I can only guess as grouping impacts it but the raw data is the key. If that does not work look up the "grouping chain" for what field is your key field that changes everytime for your grouping at that level. Display the group headers and look for it that way. Which GH changes for each displayed GF. Once you see it change your RT to changing on that field then you should see it go.

1
1
2
2
3
3
IP IP Logged
elie234
Groupie
Groupie


Joined: 21 Aug 2009
Online Status: Offline
Posts: 68
Quote elie234 Replybullet Posted: 25 Sep 2009 at 1:24pm
Thanks for your help.
IP IP Logged
<< Prev Page  of 2
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.