Solved

Conditional suppressing of records based on a formula field

Posted on 2008-09-29
2
957 Views
Last Modified: 2008-09-29
I have created report from a stored procedure written by a third party that I cannot change, edit, etc.  I do not know how to create stored procedures, I can only work with the existing stored procedures.  

I have grouped my report on ID first, date second. The only group that I am showing on the report is GF1, which lists each ID only one.  It counts the number of differant dates and displays that number.  It totals the number of On's and Off's for each ID and displays that total.

I have created 2 formula fields.  One that shows the differance of the the total number of Ons from the total number of Offs {formula field: OnMinusOff}.  One that shows the percentage of  OnMinusOff divided by Ons.  [(OnMInusOff - On) *100] {formula field: perOnMinusOff/On}.

What I want to do is only show on the report the records where the formula field perOnMinusOff/On is greater then 40 or less then -40.

Current Sample:
ID       Num Days    Tot On   Tot Off     OnMinusOff    perOnMinusOff/On
3844     6                 1756       1123           633                      36
3847     6                 2419        2695        -276                      -11
3900     6                   868         188          680                        78

Desired Sample:
ID       Num Days    Tot On   Tot Off     OnMinusOff    perOnMinusOff/On
3900     6                   868         188          680                        78

Because the formula fields contain my criteria information, I cannot use record selection.  I am thinking that a sub-report may allow me to do this, but I do not know how to create the necessary sub-report.
0
Comment
Question by:DianeKmi
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 22597623
It sounds like a conditional suppression formula should do this OK.

Use the section expert to get to the Suppress option and use the Conditional X+2 button to get into the formula editor.

Make sure you pick the group totals from the field list on the left panel - do not try to type them.

You would have something like

Sum(field, groupfield)>=-40 and Sum(field, groupfield)<= 40
0
 

Author Comment

by:DianeKmi
ID: 22598035
Thank you, doing the conditional suppession at the group level worked perfectly.


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

Suggested Solutions

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. …
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 …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

22 Experts available now in Live!

Get 1:1 Help Now