Hi all,
I'm trying to make a complete analysis of order amounts in the last X months. I have a table with: 1)order number; 2) order date; 3)code; 4) amount; 5) customer.
What I need is: a) daily amount average for each code; b) standard deviation for each code; c) number of customers for each code.
The problem is: if I group orders daily and then I group them for code I cannot calculate AVG and StdDev because crystal report doesn't consider the days with amount = 0.
Example:
Order date: 1st feb 2000
Order number: xxxx
Code: 1.1.1.1
Amount: 10
---------------------------
Order date: 3rd feb 2000
Order number: xxxx
Code: 1.1.1.1
Amount: 20
Avg should be 10, Crystal calculates 15
StdDev should be 8.16, Crystal calculates 5
What can I do?
I'm trying to make a complete analysis of order amounts in the last X months. I have a table with: 1)order number; 2) order date; 3)code; 4) amount; 5) customer.
What I need is: a) daily amount average for each code; b) standard deviation for each code; c) number of customers for each code.
The problem is: if I group orders daily and then I group them for code I cannot calculate AVG and StdDev because crystal report doesn't consider the days with amount = 0.
Example:
Order date: 1st feb 2000
Order number: xxxx
Code: 1.1.1.1
Amount: 10
---------------------------
Order date: 3rd feb 2000
Order number: xxxx
Code: 1.1.1.1
Amount: 20
Avg should be 10, Crystal calculates 15
StdDev should be 8.16, Crystal calculates 5
What can I do?