Link to home
Start Free TrialLog in
Avatar of jph826
jph826

asked on

crystal group suppression based on formula

CRV10 - I have a report with one group, LOCATION.  In that group footer I have a formula that calculates turnover percentage.  I already have detail suppressed.   How can I suppress the group if the turnover percentage < 10 percent ?

The formula is:  
if Sum ({@terms}, {@pl and dept and name}) = 0 then 0 else

Truncate (Sum ({@terms}, {@pl and dept and name})) / Sum ({@headcount EndofMth}, {@pl and dept and name}) * 100
Avatar of Mike McCracken
Mike McCracken

Try this

Click REPORT   -->  SELECTION FORMULA --> GROUP

if Sum ({@terms}, {@pl and dept and name}) = 0 then 
     False
Else
     (Truncate (Sum ({@terms}, {@pl and dept and name})) / Sum ({@headcount EndofMth}, {@pl and dept and name}) * 100) >= 10 

Open in new window

mlmcc
Avatar of jph826

ASKER

Thank you!  I got the "Division by zero" error with the Truncate portion of the formula hi-lighted.
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jph826

ASKER

Exactly what I needed.  Thank you!
Avatar of jph826

ASKER

thanks