Solved

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

Posted on 2006-11-08
8
235 Views
Last Modified: 2012-08-13
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
Comment
Question by:BrianMack
  • 5
  • 2
8 Comments
 
LVL 17

Expert Comment

by:MIKE
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

by:MIKE
ID: 17902130
Please post the contents of your formulas here please.
0
 
LVL 17

Accepted Solution

by:
MIKE earned 125 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 17

Expert Comment

by:MIKE
ID: 17902215
{@variance} is your variance formula.

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

just fyi....
0
 
LVL 100

Expert Comment

by:mlmcc
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

by:BrianMack
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

by:MIKE
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

by:BrianMack
ID: 17906925
Hi Mike V

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now