Solved

Formula syntax issue with Crystal Reports XI

Posted on 2007-03-22
6
869 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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