I'm trying to produce a Customer On Time Delivery (OTD) report which shows the % of Orders delivered on time within a date range, by Company, Division, Customer.
The report has hidden groups, allowing you to drill down to the lower levels.
The problem is, when using running totals, the 'Totals' get summarised to the level you are looking at.
(unfortunatly you can not sum a summary variable I think?)
The hierarchy is Company id, Division id, Customer id, Order id, Del id.
An Order can have multiple deliveries.
E.g If a Division has 10 on time delivered orders, comprising of 2 customers, then when you drill down to a customer which has 6 on time delivered orderes, the Division total changes to 6.
1) How do you avoid the totals been filtered when driling down and using Running totals?
Will the 3 variable running total technique avoid this?
The report is based on a single table,
CompID,DivID,CustID,OrderID,OrderQty,OrderDueDate,DelID,DelDate,DelQty
Multiple deliveries can occur on the same day.
I want to be able to measure if the total qty delivered = Order qty and the last delivery date <= Order due date.
(I can add any columns to the table if needed.)
I've already added a delivered running total, and a flag to indicate if the order is on time. The problem with the flag is that, if last 2 deliveries which make the order on time, there will be 2 records with a On time flag set. So using a sum function to count the number of orders are on time will be wrong.
At the Order level I use the maximum of on time,
but i cannot then sum this summry.
Does this makes sense?
Any help will be appreciated.
The report has hidden groups, allowing you to drill down to the lower levels.
The problem is, when using running totals, the 'Totals' get summarised to the level you are looking at.
(unfortunatly you can not sum a summary variable I think?)
The hierarchy is Company id, Division id, Customer id, Order id, Del id.
An Order can have multiple deliveries.
E.g If a Division has 10 on time delivered orders, comprising of 2 customers, then when you drill down to a customer which has 6 on time delivered orderes, the Division total changes to 6.
1) How do you avoid the totals been filtered when driling down and using Running totals?
Will the 3 variable running total technique avoid this?
The report is based on a single table,
CompID,DivID,CustID,OrderID,OrderQty,OrderDueDate,DelID,DelDate,DelQty
Multiple deliveries can occur on the same day.
I want to be able to measure if the total qty delivered = Order qty and the last delivery date <= Order due date.
(I can add any columns to the table if needed.)
I've already added a delivered running total, and a flag to indicate if the order is on time. The problem with the flag is that, if last 2 deliveries which make the order on time, there will be 2 records with a On time flag set. So using a sum function to count the number of orders are on time will be wrong.
At the Order level I use the maximum of on time,
but i cannot then sum this summry.
Does this makes sense?
Any help will be appreciated.