Suppressing Group 1 when Group 2 has data suppressed

I have a report that has Group 1 and Group 2.  The data in Group 2 is sometimes suppressed dependent on data values.  There are scenarios that there is no data printed in Group 2. If there is no data in Group 2, then Group 1 needs to be suppressed.  How can this be accomplished?
Thank you.
garyjgsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Is this the same group or an inner group?

mlmcc
0
LinInDenverCommented:
Is Group 2 higher than Group 1?

When you say "no data is printed in Group 2", do you mean as a result of your conditional suppression? If so, try applying the same logic to Group 1 (only if Group 1 is a subset of Group 2).

Or try Suppress BLank Rows, or Suppress Blank Section (inside Section expert for Group Headers, Footers, and Detail.

If Group 2 is a subset of Group 1, you can try to conditionally suppress Group 2 header/footer with:

If sum({field},{Group1}) = 0
then YES else NO

or, if max({field},{Group1}) = ''
then YES else NO
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
garyjgsAuthor Commented:
Group 2 is an inner group of Group 1
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

mlmccCommented:
What are the reasons Group2 is suppressed?

I assume you have

GH1
   GH2  
   Details
   GF2
   GH2  
   Details
   GF2
   GH2  
   Details
   GF2
GF1

Sometimes all the G2 information is suppressed and you want GH1 and GF1 to be suppressed

The only way is to suppress using similar tests as the suppression of G2

mlmcc
0
garyjgsAuthor Commented:
The report is a payroll report and there are conditions, such as, part time employees wiith a certain status are suppressed depending on the department or area that the employee is working at the time, in Grooup 2.

Group 1 represents the company and Group 2 represents the department within the company.

There are mulltiple companies, Group 1.
0
LinInDenverCommented:
gary, did you try my suggestions, above? Any errors, or just not work at all?
0
mlmccCommented:
You could try this idea
Name - DisplaysInGroup2
If ThisRecordDisplaysInGroup2 then
  1
Else
  0

You could suppress GH1 with
Sum({DisplaysInGroup2},{Group1Field}) = 0

mlmcc
0
garyjgsAuthor Commented:
It worked
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.