Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Formula syntax issue with Crystal Reports XI

Posted on 2007-03-22
6
Medium Priority
?
887 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
[X]
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
  • 4
  • 2
6 Comments
 
LVL 101

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 101

Accepted Solution

by:
mlmcc earned 500 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: 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.

 
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 101

Expert Comment

by:mlmcc
ID: 18781471
You shouldn't.

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18782972
Glad i could help

mlmcc
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

704 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