Everytime one of our clients reads a news or info article on our website, an entry is added against their account ID for that date for either "Info" or "News". So I have a table with just three fields in it:
Date
Type (either "News" or "Info"
Account_ID
I have two groups, group1 on Type and group2 on date.
I have created a distinctcount formula:
@DCount
distinctcount({AUDIT_HEADLINES.ACCOUNT_ID},{AUDIT_HEADLINES.ACCESS_TIME})
So for each day in the month I have...
Date Type @DCount
01-Sep News 1245
02-Sep News 2345
03-Sep News 2134
01-Sep Info 3400
02-Sep Info 2900
03-Sep Info 3124
What I want now though is an average at the bottom of each group, showing average per day for the month. So it would look like this:
Date Type @DCount
01-Sep News 1245
02-Sep News 2345
03-Sep News 2134
Avg 1950
01-Sep Info 3400
02-Sep Info 2900
03-Sep Info 3124
Avg 3110
I thought that I could do a formula like this:
average{@count} but it wont let me.
At the moment we are exporting this data to Excel, then at the bottom of the table, simply putting a formula in which is =average(b1:b32) etc, but we want to be able to do this in the report itself to save manual intevention.
I hope this makes sense, and grateful for any help!?
Thank you
UrbanHim
Crystal XI Report Writer
London
[small]What's good for a hangover?... Heavy drinking the night before!![/small]
Date
Type (either "News" or "Info"
Account_ID
I have two groups, group1 on Type and group2 on date.
I have created a distinctcount formula:
@DCount
distinctcount({AUDIT_HEADLINES.ACCOUNT_ID},{AUDIT_HEADLINES.ACCESS_TIME})
So for each day in the month I have...
Date Type @DCount
01-Sep News 1245
02-Sep News 2345
03-Sep News 2134
01-Sep Info 3400
02-Sep Info 2900
03-Sep Info 3124
What I want now though is an average at the bottom of each group, showing average per day for the month. So it would look like this:
Date Type @DCount
01-Sep News 1245
02-Sep News 2345
03-Sep News 2134
Avg 1950
01-Sep Info 3400
02-Sep Info 2900
03-Sep Info 3124
Avg 3110
I thought that I could do a formula like this:
average{@count} but it wont let me.
At the moment we are exporting this data to Excel, then at the bottom of the table, simply putting a formula in which is =average(b1:b32) etc, but we want to be able to do this in the report itself to save manual intevention.
I hope this makes sense, and grateful for any help!?
Thank you
UrbanHim
Crystal XI Report Writer
London
[small]What's good for a hangover?... Heavy drinking the night before!![/small]