x
Solved

Conditional suppressing of records based on a formula field

Posted on 2008-09-29
Medium Priority
972 Views
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
Question by:DianeKmi

LVL 77

Accepted Solution

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

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

0

Featured Post

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.