Solved

Conditional Suppressing

Posted on 2004-10-04
3
434 Views
Last Modified: 2010-05-18

I am working on a report that needs to supress the payment amount if the Payment ID is the same.

For Example, the report is grouped on a Organization

We have several grants under the Organization

We have several payments for the Grant (Request.ID)

We have several Requirements that must be met for the Payments (payment.id)

I need to format the payment amount to be supressed if the payment ID is equal to the preceding pmt id.

0
Comment
Question by:Nancy Villa
3 Comments
 
LVL 13

Accepted Solution

by:
TommyTupa earned 125 total points
ID: 12221458
Try paymentid = previous(paymentid) in the suppression formula.

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12221623
You might also want to group or sort on payment id.

mlmcc
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 12222063
Do you want to suppress the payment amount field only, or the entire record in which the duplicate payment occurs?  There are a couple of ways to accomplish what you've asked, but we need to know what you really require :-).  Also, you will need to be careful how you summarize values, because conditionally suppressed payment ids (and other fields) may still be included in the calculation of summaries.

Like mlmcc said - you can group or sort on payment id.    Assuming you only want to suppress the payment id:

1)  By Grouping on Payment ID, you can move the payment amount to the Group Header or Footer.  Then, if you underlay the group, you can have it appear as if its on the same line as the detail section.  The downside is that you will still see multiple detail records if they exist.  You can suppress duplicates on the payment id and amount so that data will appear like this:

Example 1 - grouped by Payment ID (no underlay)

GH - PaymentID     Payment Amount
Detail 1  -                                            Field A     Field B
Detail 2 -                                             Field A     Field B

Example 2 - grouped by Payment ID (underlay)

Detail1 - Payment ID     Payment Amount     Field A     Field B
Detail 2 -                                                   Field A     Field B

You will need to pay special attention to any summaries on payment amount, so that you don't summarize them multiple times for a single payment id.

2)  If you simply want to sort on payment id (within the other groups, as appropriate), then you can use TommyTupa's suppression formula.  You will still need to be careful in regards to  your summaries.  If you want to suppress the entire record, then conditionally suppress the detail section using Tommy's formula.

~Kurt
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

930 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

10 Experts available now in Live!

Get 1:1 Help Now