Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...with companys cutting back on training, lack of true support by makers of software, the forums are a great tool in your cyber-toolbox...."

Geography

Where in the world do Tek-Tips members come from?

suppress the group when all the details are null or empty

codrutza (TechnicalUser)
3 Jul 12 9:16
CRXI
I have a group and in detail I have some formulas that if they are null or empty are suppressed.

A
Date1 carrier1
B
C
carrier2
D
E
F
Date5 carrier5 job5

Is a way to suppress the group when all the details are null or empty?

A
Date1 carrier1
C
carrier2
F
Date5 carrier5 job5

Thanks
hilfy ( IS/IT--Management)
3 Jul 12 9:57
You can use either the Group Selection Expert or the Suppression formula on the the group sections. Your formula for these would be something like:

IsNull({@DateFormula}) and
(IsNull({@CarrierFormula}) or {@CarrierFormula} = '') and
(IsNull({@JobFormula}) or {@JobFormula} = '')

How this will actually look depends on what the types and results of your formulas are.

-Dell

DecisionFirst Technologies - Six-time SAP BusinessObjects Solution Partner of the Year
www.decisionfirst.com

hilfy ( IS/IT--Management)
3 Jul 12 9:58
Oh, and if you use the Group selection, you'll need to wrap the whole thing in parentheses and put "Not" in front of it.

-Dell

DecisionFirst Technologies - Six-time SAP BusinessObjects Solution Partner of the Year
www.decisionfirst.com

Madawc (Programmer)
3 Jul 12 10:05
How are you suppressing the unwanted values? If you're selecting those details and then suppressing them when it comes to printing, you need to move the selection to record selection.

yinyang Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP yinyang

codrutza (TechnicalUser)
3 Jul 12 12:07

Madawc Williams
Sorry. I'm not suppressing the formulas, they "don't appear" when the result is null or empty.
Dell
Sorry. The formulas not( IsNull({@DateFormula}) and
(IsNull({@CarrierFormula}) or {@CarrierFormula} = '') and
(IsNull({@JobFormula}) or {@JobFormula} = '')) are for detail, not for group, isn’t it? How can I hide the group when the results in detail are null or empty?
hilfy ( IS/IT--Management)
3 Jul 12 12:12
It depends on how many records you expect to see in your groups. If there is only one, it would work. If there's potentially more than one, you could try using Max on the formulas, something like this:

not( IsNull(max({@DateFormula}, {Group Field})) and
(IsNull(max({@CarrierFormula}, {Group Field})) or max({@CarrierFormula}, {Group Field}) = '') and
(IsNull(max({@JobFormula}, {Group Field})) or max({@JobFormula}, {Group Field}) = ''))

-Dell

DecisionFirst Technologies - Six-time SAP BusinessObjects Solution Partner of the Year
www.decisionfirst.com

codrutza (TechnicalUser)
12 Jul 12 6:38
God ideea, Dell, thank you. I tried it and it works. But now I have a subgroup, and I have some formulas in the subgroup as well; when I right click on them, it doesn't give me the summary option. Any idea?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close