Solved

Include a duplicate 'violation' in a group

Posted on 2011-03-03
8
212 Views
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
0
Comment
Question by:John-S Pretorius
  • 5
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
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.  
Test

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

mlmcc

0
 

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
0
 
LVL 100

Accepted Solution

by:
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?

mlmcc
0
 

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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 100

Expert Comment

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

mlmcc
0
 

Author Comment

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

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
0
 

Author Closing Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Query Builder on BOXIR2 7 54
VS2015 VB.net Crystal Reports Cant add parameters field to report 8 110
Ignore parameter if no value entered 22 46
Crystal Reports - group header 2 38
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

16 Experts available now in Live!

Get 1:1 Help Now