Solved

Accumulating Group Footer count

Posted on 2013-06-18
4
402 Views
Last Modified: 2013-06-19
I have a 2 Groups, Group1 is all cardnumbers then Group 2 is dates with all transactions in the data field - I run a formula in GF to check if the count of data transaction is 2 (Always a entry and a exit and the last transaction is a exit) - if there is only one transaction count and it is a entry show a '1'

I'm trying to calculate all the 1's (all users that is 'IN' ) - I tried  running total but it seems to calculate each transaction rather than just the ones.

Any ideas please ?
0
Comment
Question by:John-S Pretorius
  • 2
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39258286
Do you mean for when the group total is 1?

Try this
Add a formula to the report header
WhilePrintingrecords;
Global NumberVar CountStillIn;
""

In the group footer for the dates (assume that is where you are showing the 1
WhilePrintingrecords;
Global NumberVar CountStillIn;
If ({YourField} = 2) then
    CountStillIn := CountStillIn + 1;
""

At the end of the report
WhilePrintingrecords;
Global NumberVar CountStillIn;
CountStillIn

mlmcc
0
 

Author Comment

by:John-S Pretorius
ID: 39258300
Actually I want to count if the last transaction  is still in, sometimes users have multiple in / out transactions - I was thinking a if statement which gives a 1 in the footer if the last transaction is in , then count just all the 1's in the footers.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 400 total points
ID: 39258311
In the group footer for the dates (assume that is where you are showing the 1
WhilePrintingrecords;
Global NumberVar CountStillIn;
If ({YourField} = 1) then
    CountStillIn := CountStillIn + 1;
""

mlmcc
0
 

Author Closing Comment

by:John-S Pretorius
ID: 39259105
This worked great, thank you.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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