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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

suppress all if group total = zero

Status
Not open for further replies.

atarrqis

IS-IT--Management
Joined
Nov 26, 2004
Messages
155
Location
US
CRII and Oracle
I have 2 groups. I sum at group2 & group1. I want to suppress all the details if group1 sum = 0. I've tried both running total and numbervar without success. Too simple?
 
exmaple:
ABC -12
ABC 10
ABC -2 Group2

BCD -4
BCD 6
BCD 2 Group2

0 Group1

all lines should be suppressed
 
From menu - Report-section expert
In suppression formula enter

sum({Yourfield},{group1field}) = 0

_____________________________________
Crystal Reports 2011 and XI
Intersystems Cache 2012 ODBC connection

 
Well, yes, I tried this but it doesn't suppress the details. I assumed it had something to do with when it computes the total of group1 vs when it reads the details.
 
The menu option of
Report, Selection Formulas, Group...
is exactly what you are looking for.

Cheers,
- Ido


view, export, burst, email, and schedule Crystal Reports.
 
I tried using Selection..Group but this didn't work.
I realize now I had an error in that formula. Once I fixed, it worked great.
Thanks!
 
IDOs solution is better than what I suggested by the way

_____________________________________
Crystal Reports 2011 and XI
Intersystems Cache 2012 ODBC connection

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top