Solved

Show first transaction in group footer

Posted on 2013-05-10
2
478 Views
Last Modified: 2013-05-10
I am grouping by 'roomnumbers' (Number) and have Entry/Exit data defined by a device type. I'm trying to show in a formula placed in the group footer what the first device type used was but my result is not as expected - See image below. I have a @ movement formula which shows the number 2 for a exit and the number 1 for an entry and when I use a formula : @test (minimum {movement,roomnumber} I am expecting a number 2 (as it is an exit in the data) but instead I get a 1, when I use a second formula @test2 (minimum{time,roomnumber} I do get the expected first transaction. (time)

Is there way to show the first movement type (number) in the footer ?

Snapshot
0
Comment
Question by:John-S Pretorius
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 400 total points
ID: 39157571
Minimum and maximum are for the values so if the values are 1 and 2 the minimum will generally be 1 and the maximum 2.

Try this

In the group header add a formula
WhilePrintingRecords;
Global NumberVar FirstValue;
FirstValue := If Exit then 2  else 1;
""

In the group footer you can show the value with

WhilePrintingRecords;
Global NumberVar FirstValue;
FirstValue

The last value will be the value of your formula

mlmcc
0
 

Author Closing Comment

by:John-S Pretorius
ID: 39157584
Thank you, I really tried my best for days but just could not come up with anything - so much to learn.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Formula to "conditionally count/sum" 3 68
Crystal Reports No Record Returned 2 75
Crystal Reports Version 7 4 39
Help with a Crystal Formula 6 23
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 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