Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to Add a Formula to Totals at the end of report

Avatar of Carlo Vasquez
Carlo VasquezFlag for United States of America asked on
Crystal Reports
14 Comments1 Solution368 ViewsLast Modified:
Scenario.
I have a report which shows two orders going out and a netamount of 531.58.
Problem here is that the order did not go out twice. It was backorder so when the other
items came we shipped those out.
In the report if we were to add this netamount field to the end of the report, it would be inacurate.

So I created a formula, {NetAmount}, to show me just the first order and if second order shows to show a zero for netamount.

Here is the {NetAmount} code:

if OnFirstRecord or {SYSOENT.ORDER_NO} <> Previous({SYSOENT.ORDER_NO}) then
   {SYSOENT.NET_AMT} else
0

This works fine. Problem is when I go to create a running totals field in the field explorer, the {NetAmount} Formula does not show. Where did I go wrong?
i just want to be able to add the formula and show this at the end of the report.

Thanks.