Crystal Reports Calculate Percentage

I am trying to calculate the percentage of each security in a given portfolio. The calculation should be value of the security divided by portfolio total. For example, in account 1, first portfolio, the percentage for Select Financial Svcs should be 400/1500 = 0.267.

I tried using a following manual formula ({@Secur_Value} / {@Acct_Sum}), but it does not calculate the correct percentage.

The report is attached. Please help solve the problem.
Report
Mark01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
What are the 2 formulas you are using?

I assume you are looking in the first line for 400/1500

mlmcc
Mark01Author Commented:
In the screenshot, the far right column "Secur_Percent" is the Secur_Percent formula. That formula is ({@Secur_Value} / {@Acct_Sum}).

Yes, I am looking at the first line, Select Financial Svcs, with a value of  400. The current but incorrect Secur_Percent is 0.13

I tried to attach the report file again.
Acct_Value_test.rpt
mlmccCommented:
Change the Acct_Sum to

sum ({Acct_Value.SecValue},{tblPortfolios.Portfolio}) * 100

Open in new window


Change the formatting to be %

mlmcc

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark01Author Commented:
Thank you, mlmcc. It works now. The two formulas I'm using are:

Acct_Sum2 = sum ({Acct_Value.SecValue},{tblPortfolios.Portfolio})
Secur_Percent2 = {@Secur_Value} / {@Acct_Sum2}
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.