Link to home
Start Free TrialLog in
Avatar of BrianMack
BrianMackFlag for United States of America

asked on

How do I get "show as a percentage of" total to work?

Hi

I'm using Crystal Reports XI.  I've created a report that balances two columns of financial transactions from two different sources.  I've created a formula field that calculates the variance between the two numbers.  The user would like to show the total variance as a percentage of total transactions.  In the Insert Summary dialog box is a check box "show as a percentage of" and a dropdown list box.  The checkbox and dropdown list box are grayed out.  How do I get this to work?  
Avatar of Marcus Aurelius
Marcus Aurelius
Flag of United States of America image

Can you post the formulas?

Also first try typing this as the first line of your formulas:

whileprintingrecords;


thanks
MikeV
Please post the contents of your formulas here please.
ASKER CERTIFIED SOLUTION
Avatar of Marcus Aurelius
Marcus Aurelius
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
{@variance} is your variance formula.

Count({Orders.Order ID} is YOUR grand total field...

just fyi....
Avatar of Mike McCracken
Mike McCracken

It sounds like you have PRINT TIME formulas.  You cannot get summaries of them since summaries are done before the PRINT TIME pass.

mlmcc
Avatar of BrianMack

ASKER

This is the formula for the variance: {Command.FDRTRANSAMT} - {Command.RMSTRANAMT}

I also when into the SQL command and created a new column in the result set that is (FDRTRANSAMT - RMSTRANSAMT) AS VARIANCE.  This column gives me that same results as the formula field.  I have a sum on FDRTRANSAMT, RMSTRANSAMT and VARIANCE.  The user wanted to know what percentage of their daily transactions were out of variance.  The "show as percentage of" is still grayed out.  So can I assume I can only get the percentage by creating a formula for it?
I think you need to have a GROUP inserted in order to get the option to "show as a percentage of"...

Mike V
Hi Mike V

You're probably right.  I used your formula solution.  Thanks