Crystal Reports 2020 - How to Supress a Group Header if Every item in Detials is Supressed - crystal-reports

In Crystal Report 2020, I have a formula for supressing details based on certain criteria. I need to supress the Group Header if every item in the details is supressed based on that criteria. How do I do that?
The formula for supressing the detials is:
(ToText({MIMORD.lineNbr})<> "1.00"
AND
ToText(previous({MIMORD.compQty_form}))= "0.00"
AND
{MIMORD.wcId}<>previous({MIMORD.wcId})
)
OR
({MIMORD.compQty_form}={MIMORD.MIMOH.ordQty_form})
OR
({EXTRAS.val5} <> ""
AND {EXTRAS.val5} <> {MIMORD.wcId})
Screenshot of my report is below. I'd also like to supress Group Header #1 if Group header #2 is supressed for all records.
I know there is a method to count the rows supressed using a summary formula but bevause I have the previous() function in my formula, I am getting an error that I can not use a summary formula.
Crystal Report Screenshot

Related

Crystal reports: how to conditionally suppress sections

I am having difficulty suppressing a group header if another group header is blank/suppressed.
Originally I had a layout as follows:
Group Header a - contains client details
Group Header b - contains a subreport that showed details of the incoming calls from client that were received in the last 24 hours.
If the sub report in group header b was blank (because no calls had been received in the last 24 hours), my report was still showing the client details in group header a.
I can suppress the group header b section if the subreport is blank, but cannot work out how to suppress group header a if group header b is blank/suppressed.
After reading various other discussions, I understood that if you want to suppress a section when a subreport is blank, then the subreport would need to be in a section before the section you want to suppress.
So, I changed my layout as follows:
Group Header a - contains sub report showing details of calls in last 24 hours (sub report is suppressed if blank, and group header a is suppressed if blank)
Group Header b - contains client details
Group Header c - contains same subreport showing calls received in last 24 hours
So what I now need to work out is, how do I suppress group header b and c if group header a is suppressed?!
Any help would be greatfully received.
You will need to check record count of sub report, if it is zero then suppress the group using conditional suppress formula. So basically in your group query somewhere you must have field which keeps the count of records in sub report.
Right Click on section
Section Expert
Suppress No Drill
Click x-2 formula editor
if {count} = 0 then true else false
Where {count} is the field having total records for that group
Hope this helps you!

How to insert group in report footer in crystal reports

I have a special requirement in crystal report.
I want to show a table records in report footer such as Notes like this
This is my first note.
This is my second note.
This is my third note.
But as I know, it's not possible to insert group in report footer.
Any help will be appreciable....

Getting sum of multiple fields in crystal reports

how to calculate {SUM} of multiple columns into a one column in In my Crystal reports.
Total=(VAT+TAX)
ok this how in general it works:
Place your data in detail section and take simmary in report footer, You can take that by right click ojn field and use insert summary option.
Now create a formula #Total
sum(Vat)+sum(tax)+sum(duty) //you can select the summary fields from report fields
Place the formula in report footer

crystal subreport field is blank in main report footer

I have a subreport that has one group and has the following formula in Group Header 1
WhilePrintingRecords;
Shared StringVar TaskSubject := {activity_trans.subject}
My main report has the following formula in Group Footer 1
WhilePrintingRecords;
Shared StringVar TaskSubject;
TaskSubject
When I drill into the detail section of my main report the field shows a value in the GF1 section but when I preview the main report the field is blank.
The problem with putting the formula in the Group Header is that you only get one record for the formula, which usually is the first record available. If that first record is blank, then you will see no data. Your formula is correct, but there may be an issue with the way you have structured your report or the data you are trying to display.

Crystal Report 2008 - How to Sum a Value in Header section?

I have a master-detail tables, I need to sum a value in master table only but the sum appear duplicated by the numbers of rows in the detail table !!!
It looks like you placed the summary/formula field within the Details section.
If the summary field is a group summary, move it to either the Group Header or Group Footer sections. If the summary field is a report summary, move it to either the Report Header or Report Footer sections.