Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: formula needed Post Reply Post New Topic
Author Message
4sue2c
Newbie
Newbie
Avatar

Joined: 02 Feb 2011
Location: Canada
Online Status: Offline
Posts: 10
Quote 4sue2c Replybullet Topic: formula needed
    Posted: 08 Feb 2011 at 4:17am
I would like to show a report with all products sold on an invoice if one specific product is tagged. The report fields are Invoice_no and Stock_num. How is this done, what is the formula?

When I enter stock_num sold = "the product" it will only return invoices showing that specific stock number. I need all the products sold on that invoice to show as well. Please help.



IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Feb 2011 at 4:52am
I tried to answer this in your other post and am not sure where you were having problems.
Greoup on Invoice_no
Create a formula called 'flag' as:
If {table.Stock_num}=" your certain product here" then 1
 
Now insert a Summary using this formula field 'flag'
Click on the Sigma sign (looks like an E)
select the formula field name 'flag'
calculate the summary as: SUM
Summary location = group footer - select the invoice number group
This wil insert a summary field in the group footer.
 
Go into your select expert cahneg it to a ghroup Select and use your condition here
SUM(flag,Invoice_no)>0
IP IP Logged
4sue2c
Newbie
Newbie
Avatar

Joined: 02 Feb 2011
Location: Canada
Online Status: Offline
Posts: 10
Quote 4sue2c Replybullet Posted: 08 Feb 2011 at 4:08pm
Hi, I did everything you wrote right up to the last part,
when you wrote "Go into your select expert cahneg it to a ghroup Select and use your condition here
SUM(flag,Invoice_no)>0".

Are you saying to select the flag formula in select expert and enter "SUM(flag,Invoice_no)>0" as a formula entry?

Thanks again and sorry if I sound stupid.
IP IP Logged
4sue2c
Newbie
Newbie
Avatar

Joined: 02 Feb 2011
Location: Canada
Online Status: Offline
Posts: 10
Quote 4sue2c Replybullet Posted: 09 Feb 2011 at 3:15am
I got it to work thank you very very very much!
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.