Skip to main content



      Home
Home » Archived » BIRT » Crosstab taking average of averages
Crosstab taking average of averages [message #1591644] Thu, 29 January 2015 12:06 Go to next message
Eclipse UserFriend
I'm trying to create a survey report which needs to take an average of a group of average scores. The problem is BIRT is calculating the overall average using all of the underlying data instead of taking the average of the 3 already computed averages (groups), is there any way to avoid this?

As an example, a group of questions could be:

Scale 1-100

How did you like these things about your school:

Teacher - 81.9
Library - 92.9
Playground - 99.3

I want the overall score to be 91.37
(81.9 + 92.9 + 99.3) / 3

But I'm getting a slightly lower number like 91.25 because BIRT isn't taking the average of the 3 averaged numbers (groups) but the average of all the scores in the group.

We are using BIRT 4.3.2 v2


Kindest regards,
Shayne

[Updated on: Thu, 29 January 2015 12:06] by Moderator

Re: Crosstab taking average of averages [message #1591664 is a reply to message #1591644] Thu, 29 January 2015 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Could you attach a simple example (using sample database) showing how you have this set up? Thanks.

[Updated on: Thu, 29 January 2015 12:24] by Moderator

Re: Crosstab taking average of averages [message #1591796 is a reply to message #1591664] Thu, 29 January 2015 13:59 Go to previous messageGo to next message
Eclipse UserFriend
I've taken a screenshot of the output.

What I want to do is generate an average score for Food & Beverage, and then generate an average score for Front Desk. I then want to take those two averages and calculate an overall average for the survey.

What is happening is BIRT is generating the average by taking the sum of the scores of the 15 questions and dividing by 15 instead of just the two averages.

index.php/fa/20658/0/


-Shayne
Re: Crosstab taking average of averages [message #1592072 is a reply to message #1591644] Thu, 29 January 2015 17:37 Go to previous message
Eclipse UserFriend
All you should need to do is select the correct measure grouping to aggregate over in your grand total aggregation expression. Take a look at the attached image.

index.php/fa/20659/0/

[Updated on: Thu, 29 January 2015 17:38] by Moderator

Previous Topic:RTC Version 4.05
Next Topic:Table Grouping and Sub Report Conflict
Goto Forum:
  


Current Time: Tue Mar 25 09:29:29 EDT 2025

Powered by FUDForum. Page generated in 0.04193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top