Solved

Conditional suppressing of records based on a formula field

Posted on 2008-09-29
2
963 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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

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 …
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

617 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