Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Problem Calculating a percentage Post Reply Post New Topic
Author Message
keithrichards
Newbie
Newbie


Joined: 30 Jun 2010
Location: Australia
Online Status: Offline
Posts: 31
Quote keithrichards Replybullet Topic: Problem Calculating a percentage
     Posted: 09 Nov 2010 at 7:56am
Hi there,
 
I am trying to calculate the percentage difference between two numbers (which is fairly simple). But I am a bit stuck on calculating the difference when one of the numbers has a starting point as a minus.
 
The example would be if there was a negative growth number in say 2005 of -5% and then in 2006 the number bounced back and was +5%. To calculate the difference I am currently dividing 2006/2005 which works fine when both numbers are positive... but when one number is negative I don't get the correct result.
 
Many thanks,
 
KR
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Nov 2010 at 9:54am
a little confused by your process.
2005 is -5% of what?
you seem to have a base value from somewhere that you are not referencing.
IP IP Logged
keithrichards
Newbie
Newbie


Joined: 30 Jun 2010
Location: Australia
Online Status: Offline
Posts: 31
Quote keithrichards Replybullet Posted: 09 Nov 2010 at 10:09am
Hi there DB... Sorry to confuse.
 
Let's say that 2005 was equal to a number of -5 and then 2006 was equal to a number of +1.5. What I'm wanting is the the formula to work out the % improvement. Which in this case looks about 300%?
 
Thanks,
 
KR 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 09 Nov 2010 at 10:26am
not sure about this.
If you divide by the negative amount you will get a negative value...
(1.5)%(-5)= -30%
or
(-5)%(1.5)= -333%
 
Anyone else?
 
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