Solved

Formula syntax issue with Crystal Reports XI

Posted on 2007-03-22
6
851 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now