Calculating Average Crosstab Summary cells
Posted: Fri Jul 08, 2011 3:41 am
Hi,
I have a crosstab report that has rows for customer names and 4 columns of info, col1 is a sum, col2, col3 & col4 are averages .
The report is displaying how many events there have been for each customer in each month and then the average number of days between key actions during these events.
The crosstab fields are all displaying OK, and the Col1 (sum) summaries (both row & column) are correct
The issue I am having is the average values summaries.
The cross tab cells are showing the average values of the data correctly, but the summary values are calculating the average of the averages
eg lets say there are 3 customer (rows) and there are a total of 10 events for these 3 customers.
Customer1 has 3 events and the number of days for each event is 3,2,4 giving an average of 3 (total days = 9)
Customer2 has 3 events and the number of days for each event is 5,5,5 giving an average of 5 (total days = 15)
Customer3 has 4 events and the number of days for each event is 1,1,1,1 giving an average of 1 (total days = 4)
................|.......January......| Febuary |
................|Events|Avg Days| |
customer 1|....3....|.....3.......| |
customer 2|....3....|.....5.......| |
customer 3|....4....|.....1.......| |
-------------|--------|-----------| |
....................10....|....3 (2.8)|
Stimulsoft report gives the summary value for the Avg days of 3 ((3+5+1) /3 = 3) ie average of the average values.
What I need to calculate is the overall average from the data
ie total days (= 28) / total events (10) = 2.8
Is it possible to overrider the generated average here & calculate these summary cells?
Maybe a control/setting I've missed or if I can make the calculations in the summary cells drectly?
I have only shown the example for the 1 bottom summary in i month, but the same applies to the right summary when you have a full year
I have a crosstab report that has rows for customer names and 4 columns of info, col1 is a sum, col2, col3 & col4 are averages .
The report is displaying how many events there have been for each customer in each month and then the average number of days between key actions during these events.
The crosstab fields are all displaying OK, and the Col1 (sum) summaries (both row & column) are correct
The issue I am having is the average values summaries.
The cross tab cells are showing the average values of the data correctly, but the summary values are calculating the average of the averages
eg lets say there are 3 customer (rows) and there are a total of 10 events for these 3 customers.
Customer1 has 3 events and the number of days for each event is 3,2,4 giving an average of 3 (total days = 9)
Customer2 has 3 events and the number of days for each event is 5,5,5 giving an average of 5 (total days = 15)
Customer3 has 4 events and the number of days for each event is 1,1,1,1 giving an average of 1 (total days = 4)
................|.......January......| Febuary |
................|Events|Avg Days| |
customer 1|....3....|.....3.......| |
customer 2|....3....|.....5.......| |
customer 3|....4....|.....1.......| |
-------------|--------|-----------| |
....................10....|....3 (2.8)|
Stimulsoft report gives the summary value for the Avg days of 3 ((3+5+1) /3 = 3) ie average of the average values.
What I need to calculate is the overall average from the data
ie total days (= 28) / total events (10) = 2.8
Is it possible to overrider the generated average here & calculate these summary cells?
Maybe a control/setting I've missed or if I can make the calculations in the summary cells drectly?
I have only shown the example for the 1 bottom summary in i month, but the same applies to the right summary when you have a full year