Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Formula syntax issue with Crystal Reports XI

Posted on 2007-03-22
6
865 Views
Last Modified: 2008-01-09
I'm using Crystal Reports XI, and am not able to come up with the proper syntax for a formula I need to complete a report.

I have a field called {hbs_jcjd.activity_no_} and a field called {hbs_jcjd.amount_}.   What I need is to have the amount displayed when the activity number is 99900.  When I've attempted the formula I end up with hundreds of thousands of records when I know there is only 18 for my particular parameters.  I remove the formula from the body of the report, hit refresh and I'm back down to 18.

My programming skills are next to zero, so I'm hoping this is a fairly simple formula that someone will be able to easily impart some wisdom upon me.

Thanks in advance,
Corrie
0
Comment
Question by:CBanman
  • 4
  • 2
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 18776443
Where are you adding the formula?

What is the formula?

mlmcc
0
 
LVL 9

Author Comment

by:CBanman
ID: 18780276
I have added the formula into the Details section of the report.  The formula I started with was:

if {hbs_jcjd.activity_no_} = "99900"
then {hbs_jcjd.amount_}

Activity number 99900 is a total for all activity numbers, but when this formula is inserted into the Details it I get pages of 0's, and an exponential number of duplicate records.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 18780974
Try this

In the detail sectioin put the {hbs_jcjd.amount_}
Right click the detail section
CLick SECTION EXPERT
Click the formula button next to SUPPRESS
{hbs_jcjd.activity_no_} <>  "99900"

mlmcc
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 9

Author Comment

by:CBanman
ID: 18781306
Do I need to have {hbs_jcjd.activity_no_} inserted anywhere in the report for this to work properly, or just have it suppressed in the Detail section?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18781471
You shouldn't.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18782972
Glad i could help

mlmcc
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question