Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Conditional suppressing of records based on a formula field

Posted on 2008-09-29
2
Medium Priority
?
968 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 2000 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

886 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