Print Page | Close Window

Evaluating grouped field data

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=2810
Printed Date: 18 May 2024 at 4:09am


Topic: Evaluating grouped field data
Posted By: davidmc
Subject: Evaluating grouped field data
Date Posted: 03 Apr 2008 at 3:35pm

Hello,

I have created a formula that evaluates different info in each line of data and then created a text flag(in the below example, the flag is "A", "B" and "A & B").  What I need to do is to aggregate this flag up to a group level.  Here's an example of what I mean:

Group:        1234

1234        A

1234        A

1234        A

 

Group:        1235

1235    A

1235    B

1235    B

 

Group:        1236

1236   A & B

1236    A

1236    A

 

 

I would like the end result to look like this:

 

Group:        1234         A Only

1235        A

1235        A

1235        A

 

Group:        1235          A & B

1235    A

1235    B

1235    B

 

Group:        1236          A & B

1236    A & B

1236    A

1236    A

 

I would also like to be able to put this into a crosstab that would look at the distinct records at this aggregated group level:

 

            Total                A only              B only              A & B

            3                      1                      0                      2

 

Any help is very much appreciated.

 




Print Page | Close Window