×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

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

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

(OP)
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

### RE: How Can I Save A Calculated Number and Recall It Later

Hi, I think that you should use a Running Total in for the formula.  Read and Try it.

### RE: How Can I Save A Calculated Number and Recall It Later

(OP)
Thank you Glauco. The running total resolved the problem.

### RE: How Can I Save A Calculated Number and Recall It Later

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
http://www.chase-international.com
Accredited Crystal Decisions Enterprise Partner

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!