Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I Save A Calculated Number and Recall It Later 1

Status
Not open for further replies.

ihda

MIS
Apr 6, 2001
46
US
I am using Crystal 8.5 - In the footer of my group (I'm grouping by a category code) I have these formula fields:

Total-by-Category-code
sum ({am1_txt.mor-amt},{am1_txt.category-code})

Total-by-1010
if {am1_txt.category-code} = "1010" then {@Total-by-Category-code}

Total-by-1050
if {am1_txt.category-code} = "1050" then {@Total-by-Category-code}

Total-1010-and-1050
if {am1_txt.category-code} = "1050" then {@total-by-1050} + {@total-by-1010}

The total-1010-and-1050 does not pick up the "1010" amount.

Example:
total-by-1010 = 100
total-by-1050 = 50
total-1010-and-1050 = 50 (The total should be 150)

I am fairly new to the formulas and I may not be using them effectively.

Thank You
 
Hi, I think that you should use a Running Total in for the formula. Read and Try it.
 
Thank you Glauco. The running total resolved the problem.
 
ihda: As an alternative you could try this:

Total-1010-and-1050
if ({am1_txt.category-code} = "1050" or {am1_txt.category-code} = "1010") then {@total-by-1050} + {@total-by-1010}
David C. Monks
david.monks@chase-international.com
Accredited Crystal Decisions Enterprise Partner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top