Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Formula to show one result Post Reply Post New Topic
Author Message
Shelleo71
Newbie
Newbie
Avatar

Joined: 10 Aug 2009
Location: United States
Online Status: Offline
Posts: 8
Quote Shelleo71 Replybullet Topic: Formula to show one result
     Posted: 13 Aug 2009 at 7:45am
I'm developing a report to show the status of purchase orders we have written. 
 
I've got all the appropriate selectors (OPEN, Manager etc)...here's my dilema. 
 
Our PO's can be written either by line item or lump sum.  When running the report if a PO is a lump sum, it's showing all entries received on that PO.  Example...PO written for $1000.  I'll have (5) lines at $200 each as they were billed in increments. 
 
How do I get it to return only the total for that PO since it's one line at a lump sum, and yet still show the othe PO's that are by line item?
 
Thank you in advance!
 
Shelly
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Aug 2009 at 8:12am
Can you clarify a bit more on this? Maybe post sample row level data with both a lump and line by line and then how you want it to appear in crystal?
IP IP Logged
Shelleo71
Newbie
Newbie
Avatar

Joined: 10 Aug 2009
Location: United States
Online Status: Offline
Posts: 8
Quote Shelleo71 Replybullet Posted: 13 Aug 2009 at 8:24am
I would love to attach a page so that you get an idea...is there a way to do that here?  I don't see that option.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Aug 2009 at 8:26am
I do not think you can.
If you export a bit of data into excel you can copy and paste that in the post.
IP IP Logged
Shelleo71
Newbie
Newbie
Avatar

Joined: 10 Aug 2009
Location: United States
Online Status: Offline
Posts: 8
Quote Shelleo71 Replybullet Posted: 13 Aug 2009 at 8:33am
This here is a lump sum PO....as you can see it pulls every entry received on this particular line
 
Job_Number PO_Number Received_Amount
   CA40994
      1808
   CA40994       1808 3,515.91
   CA40994       1808 284.09
   CA40994       1808 20,042.29
   CA40994       1808 3,437.46
   CA40994       1808 122.30
   CA40994       1808 3,271.76
   CA40994       1808 11,329.72
   CA40994       1808 1,236.01
   CA40994       1808 1,341.07
 
The following is a Line Item PO - it however is inputting the same information for every line...the only thing received on this happens to be (2) of a Type F16 Fixture (not shown here as I only copied a portion) but as you can see it's filling that in on every line.
   CA40994       1827 !  TYPE F1 168.00 10,929.41 2.00 1,352.06
   CA40994       1827 !  TYPE F2 12.00 942.46 2.00 1,352.06
   CA40994       1827 !  TYPE F3 29.00 1,833.87 2.00 1,352.06
   CA40994       1827 !  TYPE F5 22.00 7,895.32 2.00 1,352.06
   CA40994       1827 !  TYPE F7 128.00 7,929.98 2.00 1,352.06
   CA40994       1827 !  TYPE F8 20.00 2,957.48 2.00 1,352.06
   CA40994       1827 !  TYPE EX1 29.00 825.40 2.00 1,352.06
   CA40994       1827 !  TYPE EM1 3.00 443.94 2.00 1,352.06
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Aug 2009 at 8:52am

Sorry but still having trouble "seeing" how you need this to look.

What should the end result look like?
IP IP Logged
Shelleo71
Newbie
Newbie
Avatar

Joined: 10 Aug 2009
Location: United States
Online Status: Offline
Posts: 8
Quote Shelleo71 Replybullet Posted: 13 Aug 2009 at 10:04am
Let's take the first one...
 
The report should only show one line with the total amount received so far.  Not show every amount posted.
 
The 2nd one...
 
it should show each line item but only have an amount/quantity received that corresponds with that line....not fill in a received total for all.
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Aug 2009 at 10:51am
Hmmm, not sure I understand all of your data but here is a try...
Is there a condition (or conditions) per row (not comparing to next or previous row) that lets you know if that PO should be collapsed and summed or if it should be left seperate and amount displayed altered?
Like a Field is NULL for one and not the other condition, or something similar?
If so you can create a formula field to use a text version of the PO field if it = collapse and if it is not collapse then the PO text field + "-" + another unique column field from that PO group.
If you group on that it will COllapse where you only use the PO and keep seperate the others.
You also will need to suppress your details and group footer.
Use another formual on the same condition to display the amount:
If collapsed then Use ethe SUM (received_amount, group1) else use amonut * quatity for that row (group).
Does this make any sense?
IP IP Logged
KAIBIRO
Newbie
Newbie
Avatar

Joined: 11 Aug 2009
Location: Canada
Online Status: Offline
Posts: 5
Quote KAIBIRO Replybullet Posted: 13 Aug 2009 at 11:38am

Create a Group based on field Line Item and then create a running total for the amount and select Line item as the on change of field.

kaib
IP IP Logged
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