×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*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.

Students Click Here

Jobs

How Can I Save A Calculated Number and Recall It Later

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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close