Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to Show all items if one item is present? Post Reply Post New Topic
Author Message
scotters
Newbie
Newbie


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 1
Quote scotters Replybullet Topic: How to Show all items if one item is present?
    Posted: 25 Aug 2009 at 8:59am
Hi, I have what should be a fairly simple report but I can't figure out how to do it.
 
I want to show all items on a sales order if a specific item is present. That's it.
 
So for example: If customer ordered item "AAA Battery" then I want to know what else they bought on that order.
 
I am using Crystal XI. I appreciate anyone who can help me!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Aug 2009 at 10:10am
Group on theOrder#
Create a formula field to flag if a row is "AAA battery" as "Flag" (or whetever)
If field="AAA battery" then 1 else 0
Do a SUM of that formula field at the group level of the customer order id.
Now you can suppress any row (header or details) by using that SUM field.
Suppress as SUm(0">{@flag},groupfiled)=0


Edited by DBlank - 25 Aug 2009 at 10:14am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.