Include a duplicate 'violation' in a group

Posted on 2011-03-03
Last Modified: 2012-05-11
I'm trying to add the following condition to the excisting formula : (previous solution)

I am trying to show if a grouped  userIDTag has a duplicate movement (entry) which will show as a 0 in the system - please see image.

I am thinking that : Include if true
({ContractParkersMovement.UserIDTag},{ContractParkersMovement.MovementType}) <> 
 next ({ContractParkersMovement.UserIDTag},{ContractParkersMovement.MovementType}

should do this but keep getting a error with the formula. Violation Condition
I am grouping with "UserIdTag" which is already functioning and setup in group selct and want to add the above condition : If a user with the same tagID (They have multiple cards issued to them) has 2  entry's (shown as a 0 for movement type ) to also include else just not show. Violation Condition
Question by:John-S Pretorius
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
  • 5
  • 3
LVL 101

Expert Comment

ID: 35031310
You have to use just a single field and you can't select on it because NEXT and PREVIOUS are orinttime functions which is the final pass after all selection is done.

You can't use NEXT within a group setting.  

Next({ContractParkersMovement.UserIDTag}) <> {ContractParkersMovement.UserIDTag}
{ContractParkersMovement.MovementType} <>  next ({ContractParkersMovement.MovementType})



Author Comment

by:John-S Pretorius
ID: 35031456
I get  "The formula cannot be used because it must be evaluated later"

Please see attatched report - the second one is the only user that is a violation 115694 because he came in twice in a row - movement - '0'  

The first and last I can get rid of in the group statement

 QCS-Users-Violation-Report.rpt QCS-Users-Violation-Report.rpt
LVL 101

Accepted Solution

mlmcc earned 250 total points
ID: 35031587
The only way to do this is to use suppression and probably a subreport since you won't know when the group starts if you need to suppress.

Is the total number of 0s at all helpful?

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Author Comment

by:John-S Pretorius
ID: 35032362
Yes - it is absolutely, all we have to is find a way to 'if' I have 2 0's after one another (2 Entry's) it means 1 User(same ID tag) has given one of his cards to someone else and the rule is if they have more than 1 card is that there cannot be more than on in the garage at the same time.
LVL 101

Expert Comment

ID: 35032646
Is the basic raw data as shown in the picture?


Author Comment

by:John-S Pretorius
ID: 35033070
Yes, and I also attacthed a .rpt file with the data.

Author Comment

by:John-S Pretorius
ID: 35041367
How would I calculate the sum of the first 2 transactions of each group ?

If I can do this in group selection : if sumoffirst 2 transaction = 0

Author Closing Comment

by:John-S Pretorius
ID: 35232684
This will be continued.

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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