jchewsmith
Technical User
I have data in a table that is grouped by month then order id, then has line item detail.
I am trying to average my order id because the line item detail is always the same on the field that I want to average and I need to include each line for other reasons.
I am currently trying to take the average of each order group because it will always equal the line average since they are all the same
I then want to get an average of the group average not of all lines.
eg.
order line# Date hrs
123 1 1/1/15 2.5
123 2 1/1/15 2.5
average 2.5
345 1 2/15/15 3.5
345 2 2/15/15 3.5
345 3 2/15/15 3.5
average 3.5
Total Average 3 not 3.1 which is the average if you use every line instead of each group
I am trying to average my order id because the line item detail is always the same on the field that I want to average and I need to include each line for other reasons.
I am currently trying to take the average of each order group because it will always equal the line average since they are all the same
I then want to get an average of the group average not of all lines.
eg.
order line# Date hrs
123 1 1/1/15 2.5
123 2 1/1/15 2.5
average 2.5
345 1 2/15/15 3.5
345 2 2/15/15 3.5
345 3 2/15/15 3.5
average 3.5
Total Average 3 not 3.1 which is the average if you use every line instead of each group