- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
In SAP Crystal Reports XI, return records that match multiple conditions
It is advisable to use functions to pass such filter conditions in CR. Also try changing the order of your condition like −
({PR.cov} = "A" and {PR.cov}="B") or {PR.cov} = "A" Try using function like this: {@A}:if {PR.cov} = "A" then 1 else 0
To create custom functions in Crystal Report, navigate to Report Menu → Formula Expert → Right Click on Custom Functions → New
It is advisable to use custom functions when you have multiple parameters to pass in the condition. You can also use the following when you have two string parameters −
( 'A' IN {?cov} OR {PR.cov} IN {?cov ) AND ( 'B' IN {?cov} OR {PR.cov} IN {?cov )
- Related Articles
- Displaying Records with maximum event number for each group in SAP Crystal Reports
- Edit report generated from SAP Crystal Reports
- Hiding null values in a column in SAP Crystal Reports
- Using Filter to fetch specific data in SAP Crystal Reports
- In SAP Crystal Reports, removing extra white space between details sections
- Difference between SAP Crystal Reports and CR for Visual Studio
- In SAP Crystal Reports, Putting 2 pages of data into a single report
- Suppressing the page header till the last page in SAP Crystal Reports 2008
- Getting a carriage return of report field in SAP Crystal Report
- Find records in MongoDB that does NOT match a condition?
- MySQL query to return multiple row records with AND & OR operator
- How to generate multiple reports in HTML using PowerShell?
- SAP Crystal Report file is not opening in VS2015
- Implement multiple conditions in MongoDB?
- Replace records based on conditions in MySQL?

Advertisements