Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Sales Calculation Issue Post Reply Post New Topic
Author Message
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Topic: Sales Calculation Issue
    Posted: 20 Apr 2023 at 5:36am
I have a report where I'm trying to calculate the sales dollars per square inches of the item sold. For most orders, the sales dollars are easy, ShipQuantity*PricePerM. However, we have one customer where price is not specified per item, but for the order in total as MiscCharge. If they only order one item, it's still easy at ShipQuantity*MiscCharge.

However, if they order multiple items, that won't work as the MiscCharge could be for 3 different items where they order 3000 of one item, 2000 of another, and 1200 of a third. There's nowhere in the data that 6200 units exists as a number. Each item appears as a separate line item.

I think I need to be able to sum the ShipQuantity by order number, but can't figure out a way to do that and still get the rest of the report to work. Help!
IP IP Logged
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Posted: 20 Apr 2023 at 9:14am
I found a field in one of the tables that I didn't know existed, so I was able to get it working!
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.