Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Sum field with same index! Help needed! Post Reply Post New Topic
Author Message
borg_jos
Newbie
Newbie


Joined: 24 May 2010
Online Status: Offline
Posts: 3
Quote borg_jos Replybullet Topic: Sum field with same index! Help needed!
    Posted: 24 May 2010 at 10:05am
I am beginner using CR9.2.2.

Basically I am importing data to crystal by command.

Data imported is simple in the format:
Field1 Field2
A -> 10
B -> 20
C -> 25
C -> 30


What I require is that report shows:
A -> 10
B -> 20
C -> 55

I am working by the following formula but it doesn`t work:
IF FIELD1 = A THAN FIELD2 ELSE
IF FIELD1 = B THAN FIELD2 ELSE
IF FIELD1 = C THAN SUM(FIELD2)

Does anyone what is required to add total for field2 whenever field1 is the same and is shown a 1 total in the report?

Any help would be appreciated.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 25 May 2010 at 2:50am
read in your data, create a group on field 1, don't display the detail, display in the group footer field1 and the sum of field2.
 
HTH
IP IP Logged
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.031 seconds.