Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Conditional Sum in formula editor Post Reply Post New Topic
Author Message
razazz
Newbie
Newbie
Avatar

Joined: 31 May 2010
Location: Canada
Online Status: Offline
Posts: 3
Quote razazz Replybullet Topic: Conditional Sum in formula editor
     Posted: 31 May 2010 at 9:50am
Guys,
 
absolutely new to CR. I have designed a P & L statement using crystal reports.
 
i want to be able add a total field at the bottom that does a conditional sum
 
the sql woulld be
 
select sum(actuals) from tbl_name where not typecode = 'vol' 
 
i have tried using the formula editor and can not get it to work. could someone guide me to the proper place.
IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 01 Jun 2010 at 2:47am
Create a running total that summarizes the desired field and evaluates at {tbl_name.typecode}<>'vol'
Set that to Reset NEVER.
Put in the Report Footer.
|< /\ '][' ( )
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