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 9 through 2022
:
Report Design
Topic: Division by zero
Author
Message
crystalbeg
Newbie
Joined: 30 Oct 2012
Online Status: Offline
Posts: 15
Topic: Division by zero
Posted: 13 Nov 2012 at 3:34am
Dear all,
i'm getting a division by zero error on the formula below..anyone know why?
IF ISNULL({Totalbudget})then 0 else (({@Expenditures}*100)/{totalbudget})
Thanks in advance. rgs, CB
MK
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 13 Nov 2012 at 3:44am
you are setting NULL total budgets to 0 and you cannot use 0 as a denominator.
IF ISNULL({Totalbudget}) or {Totalbudget}=0 then 0 else (({@Expenditures}*100)/{totalbudget})
Edited by DBlank - 13 Nov 2012 at 3:44am
IP Logged
crystalbeg
Newbie
Joined: 30 Oct 2012
Online Status: Offline
Posts: 15
Posted: 13 Nov 2012 at 4:31am
Worked perfectly! Thank you very much!!
Best regards,
Cb
MK
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
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.