Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports .NET 2003
:
Report Design
Topic: Summarise a formula
Oldest Post First
Newest Post First
Author
Message
bendrick
Newbie
Joined: 31 Oct 2012
Location: United Kingdom
Online Status: Offline
Posts: 1
Topic: Summarise a formula
Posted: 31 Oct 2012 at 11:45pm
I have a formula field that I need to summarise. The formula is as follows:
if sum({Command.MR},{Command.JN})= 0 then 0 else 1
I know it's not possible to summarise a formula that contains a sum but have no idea how to get around it
Any help appreciated
Thanks
Ben
IP Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Posted: 01 Nov 2012 at 8:25am
you can create a shared variable and increment it as needed:
shared numbervar aSum;
local numbervar temp;
if sum({Command.MR},{Command.JN})= 0 then temp:=0 else temp:=1;
aSum := aSum + temp;
temp
later you can display the summary with:
shared numbervar aSum;
aSum
HTH
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.027 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.