Solved

Filtering some entries in crystal report

Posted on 2012-12-23
5
310 Views
Last Modified: 2013-07-29
Hi,

I would like to filter some of the data in cyrstal report if the data falls into specific condition. I tried to create formula to do this, however, no success so far. I appreciate if someone can help me on this.

I would like to exclude data if the following is true:

If the customer field is xxx and keyword field includes any word SP, then, I would like to exclude the data from crystal report.

How I can create formula and use it in Select Expert to filter out those data from the report?

Thanks!
0
Comment
Question by:SFtoto
5 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 250 total points
ID: 38717254
I'm not sure I really understand this..."keyword field includes any word SP"- maybe this is what you want in the record selection rule..

If {table.customer}="XXX" and {table.keyword} like "*SP*" then false else true
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 38717341
That should work.  It this is part of a larger formula either make that the last part or put ( )

Your current formula
AND
If {table.customer}="XXX" and {table.keyword} like "*SP*" then false else true

the other way is

(If {table.customer}="XXX" and {table.keyword} like "*SP*" then false else true )
AND
Your current formula

The ( ) around it ensure it is interpreted as 1 piece

If you use
it like

If {table.customer}="XXX" and {table.keyword} like "*SP*" then false else true
AND
Your current formula

The True AND Your current formula is interpreted as 1 part and the false is interpreted by itself.

mlmcc
0
 

Author Comment

by:SFtoto
ID: 38717547
Thank you both. It worked!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article describes some very basic things about SQL Server filegroups.
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

11 Experts available now in Live!

Get 1:1 Help Now