Solved

Filtering some entries in crystal report

Posted on 2012-12-23
5
313 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

910 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

22 Experts available now in Live!

Get 1:1 Help Now