Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Subtracting two 'Counts' Post Reply Post New Topic
Author Message
paulizorama
Newbie
Newbie
Avatar

Joined: 17 Dec 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Quote paulizorama Replybullet Topic: Subtracting two 'Counts'
     Posted: 10 Jan 2010 at 10:12am
LampIs it possible to create two SUM/COUNT expressions (derived from datafields  in the same report details section) and then use the formula editor to subtract one from the other . If so what would that formula look like?  
Thanks - in anticipation          
pauliz
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 11 Jan 2010 at 5:44am

sum({table.field1}, {grouping condition}) -

sum({table.field2}, {grouping condition})

if the formula is for the entire report, the grouping condition can be removed.
 
HTH
IP IP Logged
paulizorama
Newbie
Newbie
Avatar

Joined: 17 Dec 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Quote paulizorama Replybullet Posted: 11 Jan 2010 at 10:03am
Thanks Lockwelle - will give it a spin - very grateful
pauliz
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