Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Division By Zero Error
Author
Message
bullagirl
Newbie
Joined: 24 Aug 2011
Online Status: Offline
Posts: 12
Topic: Division By Zero Error
Posted: 01 Sep 2011 at 5:11am
I have a percentage caluclation formula:
Sum (
{@closed_count
}) % Sum (
{@review_count
})
I need to somehow preempt the calculation with if review_count=0, then print "N/A" and abort the calculation.
Thanks in advance for the help!
~Randi
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 01 Sep 2011 at 5:17am
if Sum (
{@review_count})=0
then 'N/A' else
totext((Sum (
{@closed_count
}) % Sum (
{@review_count
})),0,"") + "%"
Edited by DBlank - 01 Sep 2011 at 5:17am
IP Logged
bullagirl
Newbie
Joined: 24 Aug 2011
Online Status: Offline
Posts: 12
Posted: 01 Sep 2011 at 5:36am
You rock! Thanks SO much!! That's two for two you've helped me with.
~Randi
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
BAEZL
© 2004-2026 Brian Bischof. All Rights Reserved.