Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Show first transaction in group footer

Posted on 2013-05-10
2
477 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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