Print Page | Close Window

Filter Group by Record

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Tips and Tricks
Forum Discription: Have you learned some great tricks to share with the group? Post them here!
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22798
Printed Date: 28 Mar 2024 at 5:42am


Topic: Filter Group by Record
Posted By: cyndylewilew
Subject: Filter Group by Record
Date Posted: 16 Jul 2019 at 1:30pm
I have a customer report that lists all sales items they will be billed for. Each sales item they will be billed for is listed on its own line. The report is grouped by customer. I want to see only customers who have sales item "x" on their account, but also include information on sales items "y" and "z" that also appear on their account. How do I do that?



Replies:
Posted By: DBlank
Date Posted: 17 Jul 2019 at 3:11am
create a formula field to 'flag ' the clients based on your criteria then use a summary of that at the group level to do a group selection
--flag
if table.field = 'X' then 1 else 0

SUM(@Flag,table.client)

group criteria
SUM(@Flag,table.client)>0



Print Page | Close Window