?
Solved

Issue with Crystal 10 Record Selection

Posted on 2011-03-03
6
Medium Priority
?
239 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
[X]
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
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 101

Accepted Solution

by:
mlmcc earned 2000 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
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 101

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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