Solved

Issue with Crystal 10 Record Selection

Posted on 2011-03-03
6
233 Views
Last Modified: 2012-05-11
Hello experts:

I have a report with the following record selection criteria:
 
(({NewThreats.SuspiciousAmountIndicator} = '1' and

{NewThreats.LowAverageBalanceIndicator} = '1' and

{NewThreats.SimilarAmountsIndicator} = '1' and

{NewThreats.UnusualZeroesIndicator} = '1' and

(not isnull({NewThreats.DrawingOnRDPIndicator}) and

{NewThreats.DrawingOnRDPIndicator} = '1'))  or

 
({NewThreats.SuspiciousAmountIndicator} = '1' and

{NewThreats.LowAverageBalanceIndicator} = '1' and

{NewThreats.SimilarAmountsIndicator} = '1' and

{NewThreats.UnusualZeroesIndicator} = '1' and

(not isnull({NewThreats.DrawingOnExposureIndicator}) and

{NewThreats.DrawingOnExposureIndicator} = '1')))
 
I added the criteria below but the results are the same as before
even though there's tons of RDI on the database.

Or
({NewThreats.Hittype} = 'RDI')




 The new formula looks like this:

(({NewThreats.SuspiciousAmountIndicator} = '1' and

{NewThreats.LowAverageBalanceIndicator} = '1' and

{NewThreats.SimilarAmountsIndicator} = '1' and

{NewThreats.UnusualZeroesIndicator} = '1' and

(not isnull({NewThreats.DrawingOnRDPIndicator}) and

{NewThreats.DrawingOnRDPIndicator} = '1'))  or

 

 

({NewThreats.SuspiciousAmountIndicator} = '1' and

{NewThreats.LowAverageBalanceIndicator} = '1' and

{NewThreats.SimilarAmountsIndicator} = '1' and

{NewThreats.UnusualZeroesIndicator} = '1' and

(not isnull({NewThreats.DrawingOnExposureIndicator}) and

{NewThreats.DrawingOnExposureIndicator} = '1')) or

 
({NewThreats.Hittype} = 'RDI')


)



 Thanks

 


0
Comment
Question by:lancerxe
6 Comments
 
LVL 12

Expert Comment

by:JayConverse
ID: 35028683
or  ({NewThreats.Hittype} = 'RDI')

needs to be outside the last parenthesis.


0
 
LVL 77

Expert Comment

by:peter57r
ID: 35028694
Do you have any Null values in HitType?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 35028707
Can any of the non-null tested fields be NULL?

Have you tried it

({NewThreats.Hittype} = 'RDI')

OR

Original

mlmcc
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 26

Expert Comment

by:Kurt Reinhardt
ID: 35028778
Try moving the NULL checks to the top, like attached.
~Kurt
(
  (
    (
      not isnull({NewThreats.DrawingOnRDPIndicator} or
      not isnull({NewThreats.DrawingOnExposureIndicator}
    ) and
    {NewThreats.SuspiciousAmountIndicator} = '1' and 
    {NewThreats.LowAverageBalanceIndicator} = '1' and
    {NewThreats.SimilarAmountsIndicator} = '1' and
    {NewThreats.UnusualZeroesIndicator} = '1' and 
    {NewThreats.DrawingOnRDPIndicator} = '1'
  ) or
  {NewThreats.Hittype} = 'RDI'
)

Open in new window

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35029115
That is not the same since the the tested field after the null test is different.

I thought the same at first.

Is NewThreats the only table in the report?

mlmcc
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 35029192
Good catch.  Since the "DrawingOn.." fields are set explicitly to = '1', there's no need for a NULL check at all, since if it's '1', it can't possibly be NULL.
(
  (
    (
      {NewThreats.DrawingOnRDPIndicator} = '1' or
      {NewThreats.DrawingOnExposureIndicator} = '1'
    ) and
    {NewThreats.SuspiciousAmountIndicator} = '1' and 
    {NewThreats.LowAverageBalanceIndicator} = '1' and
    {NewThreats.SimilarAmountsIndicator} = '1' and
    {NewThreats.UnusualZeroesIndicator} = '1'
  ) or
  {NewThreats.Hittype} = 'RDI'
)

Open in new window

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
Crystal Reports 11 Ignoring Parameters 3 68
how to combine a date and time field in a query 9 48
Next Full Week 4 76
Removing blank spaces between pivot table lines. 12 41
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

864 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

21 Experts available now in Live!

Get 1:1 Help Now