Hi:
Is it possible to create a table containing aggregate function such as mean, sd and variance?
Basically I have a list of the following data
classID,studentID, subject, mark, date
1,S00023,Maths,73,2015-03-03
1,S00024,Maths,68,2015-03-03
1,S00023,English,81,2015-03-05
1,S00025,English,59,2015-03-05
...
and I would like to create a table:
ClassID | Subject | Number Of Student |average Mark |SD | CV%
1 | Maths |24 |65 |7.3 |2.54
2 | Maths |18 |78 |14.3 |6.54
...
As I tried using crosstab without setting column grouping (
putting ClassID, subject as row groups, and
- count(distinct fields.studentID),
- avg(fields.mark),
- stdDevP(fields.mark),
- varP(fields.mark)
as Detail Values, but it didn't work.
Can I ask how it could be done with the designer please?
Many thanks
Regards
William