Solved

Suppress Group Header when Details Section is empty (Due to conditional suppression)

Posted on 2004-10-01
6
249 Views
Last Modified: 2012-06-21
My report looks like this

Group A Header
   Data 1, Data 2, Data 3
   Data 1, Data 2, Data 3
   
Group A Header
   Data 1, Data 2, Data 3
   Data 1, Data 2, Data 3
   Data 1, Data 2, Data 3

I have a condition suppression on the Details Section: if Data1+Data2+Data3 = Value Then Suppress  (again this suppression is not on the data values - it is on the Details Section - Section Expert - using a formula)

In the above example if both Data Sets are suppressed (first grouping) my report looks like this:

Group A Header
   
Group A Header
   Data 1, Data 2, Data 3
   Data 1, Data 2, Data 3
   Data 1, Data 2, Data 3

- I want the Group A Header to be suppressed as well. In the above example the Details Section was suppressed two times - but those where the only two lines of data - so now there is no data in that Group - so I need the Header suppressed.

Thanks





0
Comment
Question by:Callis_Ogles
6 Comments
 
LVL 28

Accepted Solution

by:
bdreed35 earned 400 total points
Comment Utility
Instead of suppressing each section, use the Group Selection to suppress the whole group.

Report menu, Selection Formulas, group.
In the editor, enter the following:

sum({table.data1},{table.groupAfield}) + sum({table.data2},{table.groupAfield}) + sum({table.data3},{table.groupAfield}) > 0

This will suppress the whole group, header, footer, and details.

You can leave the details section suppression for individual lines.
0
 

Author Comment

by:Callis_Ogles
Comment Utility
OK - sorry - I need to be more specific - I was trying to keep it simple before. It looks like this will work but here is the problem.

I have three formula fields in the Details section that are doing text comparisons. for example
Formula1
if (Name1 in Name2) then "Yes"
else "No"

Formula2
If (Company1 in Company2) then "Yes"
else "No"

Formula3
if (Description1 in Descritpion2) then "Yes"
else if (Description1 = "Exception1") And (Description2 = "Exception2") then Yes
else "No"

the purpose of my report is to create  an "exception" report - if data matches up then I don't want to see the data.
So, again, in the Details Section Expert using the formula editor on the supression field. I put this:
 
if  {@Formula1}= "Yes"
And {@Formula2}="Yes"
And {@Formula3}="Yes" then True // if all 3 match I don't need to see this line of data
else False

So now - following your previous recomendation to use the "Group Selection to suppress the whole group" - I am just not sure how to do this since I am evaluating these formulas and not data directly from a table.

I am increasing the points - since this is essentially a new question.








0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
I don't know why I missed the latest comment.  Do you still need help?

mlmcc
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now