Solved

Crystal Report GH Suppress Formula not acting as expected

Posted on 2016-09-16
10
24 Views
Last Modified: 2016-09-19
Hi Experts;

I have a three part formula used to suppress a group header when all of that group's details are suppressed. I had to use a three part formula since the actual suppression condition is a formula, which can't be summarized.
The three part formula itself is working fine, I've got the reset formula in the group header, the increment/counter formula in the details, and the totals formula in the group footer.
However, the group header suppression seems like it's suppressing based on the count of the previous group.
Here's without any GH's suppressed:
suppress1I blocked out the actual customer name, but you can see their ID number to the very left.  All customer group headers should remain unsuppressed except for C01453 and C01454 - all the detail records are suppressed and the formula @totals accurately shows 0.00
When I place the formula {@totals}=0 in the suppress area of the section expert for the group header, here's what I'm getting:
suppress2Group header for C01067 got suppressed, and while C01454 did suppress as expected, C01453 is still showing and should not be.
I've experimented with my formulas in all the various header/footer sections, and nothing seems to give me the result I'm expecting.
Any advice is appreciated!
0
Comment
Question by:tkriegel
  • 6
  • 4
10 Comments
 
LVL 1

Author Comment

by:tkriegel
ID: 41801869
Let me know if you can't see the pics - they were visible when I previewed my post, but they don't appear for me now.  Frustrating
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 41802041
The problem is the way a report is rendered.

The group header section is completed before the first detail record for it is evaluated.  Your summaries aren't done until the last detail record is evaluated thus the value you need for suppressing the group header isn't evaluated and available for testing until all the detail records thus the group header cannot be suppressed based on the value for its records.

However the group header suppression will be evaluated using the value currently available which is based on the previous group detail records.

If you need to suppress the group header based on records being displayed in the group you need to develop a formula that can be evaluated in the group header.

Can you scrub the report so you can upload the rpt with data?  If you think that is too difficult then upload the rpt file without data so we can see the formulas used to control the suppression.

mlmcc
0
 
LVL 1

Author Comment

by:tkriegel
ID: 41802124
I've never tried attaching a whole report, let's give it a try....
EDI-Cancellations.rpt
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 41802272
I took a quick look at the formulas used to calculate the totals formula.  Several of them use the MAXIMUM function which is a Print Time function.

The only way I can think to do this is to create a subreport that calculates the value and returns it to the main report as a shard variable.

I'll look at it in more detail tonight.

mlmcc
0
 
LVL 1

Author Comment

by:tkriegel
ID: 41802275
Thanks mlmcc.  If you do come across anything, I'll respond on Monday, I don't have access to CR on the weekends.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 100

Expert Comment

by:mlmcc
ID: 41802281
That's fine.  It will probably take me most of the weekend to find time to get to this.

I think I can use the report itself stripped of everything not related to calculating the value.

mlmcc
1
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41804759
0
 
LVL 1

Author Comment

by:tkriegel
ID: 41805000
Hi mlmcc - My system won't let me open the attachments due to security concerns.  Any other ideas how I can access them?
0
 
LVL 1

Author Comment

by:tkriegel
ID: 41805049
Hang on - never mind - used a different browser and was able to open the attachments.  Sorry about that.
0
 
LVL 1

Author Closing Comment

by:tkriegel
ID: 41805065
Perfect, thank you so much, this is exactly what I was trying to do!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

19 Experts available now in Live!

Get 1:1 Help Now