Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

crystal group suppression based on formula

Posted on 2015-02-20
7
Medium Priority
?
122 Views
Last Modified: 2015-05-08
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
0
Comment
Question by:jph826
[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
  • 3
  • 2
7 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 40622131
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
0
 

Author Comment

by:jph826
ID: 40622146
Thank you!  I got the "Division by zero" error with the Truncate portion of the formula hi-lighted.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 40622592
if Sum ({@terms}, {@pl and dept and name}) = 0  OR  Sum ({@headcount EndofMth}, {@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
0
 

Author Comment

by:jph826
ID: 40642989
Exactly what I needed.  Thank you!
0
 

Author Comment

by:jph826
ID: 40642994
thanks
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

705 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