If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Formula

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-10, 14:25
HendrikB HendrikB is offline
Registered User
 
Join Date: Jan 2008
Posts: 20
Formula

Hi

I have a cross tab report with Region and Customer on the left and Product on the top and below
product have current and previous year values with a growth percentage.

The growth percentage per Customer works fine, but not sure how to adjust it to calculate
the Region Sub Total growth correctly.
Below the formula I used to calculate growth on the Customer level:

if Sum ({@PreviousYear}, {Command.Customer})=0 then 0 else
(Sum ({@CurrentYear}, {Command.Customer})-Sum ({@PreviousYear}, {Command.Customer}))/Sum ({@PreviousYear}, {Command.Customer})*100

Any help wil be appreciated.

Regards
Reply With Quote
  #2 (permalink)  
Old 05-09-10, 23:59
overcharge overcharge is offline
Registered User
 
Join Date: May 2010
Posts: 6
Group your data as Region.
{Command.Customer} in the formula replace with the region group name.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On