Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Sum Quantity by key Post Reply Post New Topic
Author Message
bremen
Groupie
Groupie
Avatar

Joined: 28 May 2013
Online Status: Offline
Posts: 93
Quote bremen Replybullet Topic: Sum Quantity by key
     Posted: 09 Aug 2013 at 6:19am
I am trying to sum all entries that share a key. 
 
In my data base the available quantities for sale are sperated out by when they were purchased to account for price cahanges. 
 
my data looks as follows  
 
Key      QTY
138       11
138       11
138       13
 
 
Total for key 138 = 35 
 
what formual would I use to total all quantities by key? 
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 09 Aug 2013 at 6:32am
Hi,
 
As per my understanding you want to sum the quantities by each key. If yes then
* Create a group on key field and then write a fromula as
sum(QTY,Key)
* place the above formula in report
* and suppress Groupheader and Group footer section.
 
--Praveen G
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
bremen
Groupie
Groupie
Avatar

Joined: 28 May 2013
Online Status: Offline
Posts: 93
Quote bremen Replybullet Posted: 09 Aug 2013 at 6:56am
Thank you so much. 

That did what I needed
IP IP Logged
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