Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: field sum Post Reply Post New Topic
Author Message
elly00
Newbie
Newbie


Joined: 24 May 2011
Online Status: Offline
Posts: 10
Quote elly00 Replybullet Topic: field sum
    Posted: 20 Jun 2023 at 12:17am
Hi

I've a codart field in the detail section and for each codart filed I've a total

Now I need for every codart found the sum of the total

so If I've in my details section

product    total

aaa          1
bbb          2
ccc           3
aaa         5
bbb         6


In the report footer I would like to have

aaa= 6
bbb=8
ccc=3

I think that the only way to obtain this is using two arrays but I don't know how to corretcly do that

Anyone have an example?

thanks

IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 25 Sep 2023 at 9:45am
Actually, you could use a cross-tab in the report footer to get this, the Row field is the product and the column is the sum of the total. If you suppress the column and row grand totals, you should get what you're looking for.

-Dell
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.