Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditionally Suppress Records 1

Status
Not open for further replies.

sandy1447

IS-IT--Management
Feb 26, 2008
10
0
0
US
My report groups data by
Employee name, ID# then details test name. I need to exclude ID#s based on a test name in the detail. Example:
Smith ID#000265576
Art Access
Rt Coronary Angio
Left Heart Cath
Hemostasis

Jones ID#000266954
Art Access
Right Heart Cath
Hemostasis
Left Heart Cath

I need to exclude Jones based on test Right Heart Cath only.
 
Create a formula to test for Right Heart Cath:

if {TestName} = "Right Heart Cath"
then 1
else 0

not necessary, but if you want, put the formula in details and do a Sum on it by the ID Group. (you can then suppress these or delete them)

then go to Report Menu > Selection Formulas > Group and reference the summary you just created above.

Sum(@formulaabove, IdNumbergroup)=0
 
oh and be advised that if you have any totals you will need to do Running Total instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top