Joined: 03 Oct 2010
Location: United Kingdom
Online Status: Offline
Posts: 76
Topic: Report Totals Posted: 22 Sep 2021 at 1:15am
Hi
I have a report that shows all the orders for a range of products. I also have the available stock of each product. The grand total of the product is incorrect e.g if I have 10 in stock of one product and 10 in stock of another product they are both used in 3 orders. If I add a grand total, of what is in stock it should be 20, however it is coming out as 60, as there are 3 instances of each. Hope that makes sense. Any help much appreciated.
Ed
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 30 Sep 2021 at 3:02am
you can also possibly use running totals. Create a RT as a sum of the field but evaluate on change of the PK from the table that identifies the stock not the orders
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