Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

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

Posted on 2006-11-08
Medium Priority
244 Views
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?
0
Question by:BrianMack
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 5
• 2

LVL 17

Expert Comment

ID: 17902124
Can you post the formulas?

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

whileprintingrecords;

thanks
MikeV
0

LVL 17

Expert Comment

ID: 17902130
0

LVL 17

Accepted Solution

MIKE earned 500 total points
ID: 17902207

I'm not sure if the actual percent of total transactions will be a meaningful number but in order to do this you need to do the following:

I think all you need to do is INSERT A GRAND TOTAL.

Then...create another formula that has this in it...and place it NEXT to the VARIANCE percentage.

//%ofTotalItems
{@Variance}/Count ({Orders.Order ID})*100

Let me know if I'm miss understanding something...thanks

MikeV
0

LVL 17

Expert Comment

ID: 17902215

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

just fyi....
0

LVL 101

Expert Comment

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

mlmcc
0

Author Comment

ID: 17906359
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?
0

LVL 17

Expert Comment

ID: 17906550
I think you need to have a GROUP inserted in order to get the option to "show as a percentage of"...

Mike V
0

Author Comment

ID: 17906925
Hi Mike V

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

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customerâ€™s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. â€¦
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearlyâ€¦
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediafâ€¦
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper cornâ€¦
###### Suggested Courses
Course of the Month5 days, 8 hours left to enroll