Solved

Conditional suppressing of records based on a formula field

Posted on 2008-09-29
2
956 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

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

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

19 Experts available now in Live!

Get 1:1 Help Now