Solved

Accumulating Group Footer count

Posted on 2013-06-18
4
397 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
This worked great, thank you.
0

Featured Post

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.

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. …
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…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

17 Experts available now in Live!

Get 1:1 Help Now