Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Report Post Reply Post New Topic
Author Message
Florina
Newbie
Newbie


Joined: 23 May 2011
Location: United States
Online Status: Offline
Posts: 9
Quote Florina Replybullet Topic: Report
    Posted: 13 Jun 2011 at 1:50am
I am creating a report that has a summary  - total sales for the month.
 
I have an amount as a base from prior year (that does not change).
 
I would like to have a formula that takes above sales summary and deducts prior year base. I should end up with increase / decrease value.
 
Also I need to calculate a percentage of increase / decrease.
 
Example:
 
Total Sales January $35,076
Total Base $30,476
Increase/ Decrease  $4,600
Percent of increase / decrease 15.1%
 
Thank you


Edited by Florina - 13 Jun 2011 at 1:51am
Florina
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 15 Jun 2011 at 8:57am
Is the prior year amount calculated? When you say (that does not change) it makes me think it could be entered as a parameter or something;
IP IP Logged
Florina
Newbie
Newbie


Joined: 23 May 2011
Location: United States
Online Status: Offline
Posts: 9
Quote Florina Replybullet Posted: 15 Jun 2011 at 9:17am
No prior year amount does not change
Florina
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 16 Jun 2011 at 3:17am
shared numbervar difference:=priorbase - SUM({table.field}, {table.month});
shared numbervar percent; difference / priorBase ;
 
difference;
 
have a separate formula for percent
shared numbervar percent;
percent
 
place both in group footer.
 
HTH
 
 
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.