R
rupert
Is there any way to create a pseudo aggregate MEDIAN function for a Totals Query? I want to get several median values for the values in a field satisfying different criteria. I am working with >256 values per field (I'm converting an excel spreadseet to Access as it hit the coumns constraint).
Access help states:
aggregate function
A function, such as Sum, Count, Avg, and Var, that you can use to calculate totals. In writing expressions and in programming, you can use SQL aggregate functions (including the four listed here) and domain aggregate functions to determine various statistics.
ie doesnt include MEDIAN - so how can I do this?
Has anyone come accross this problem or know how I define this function as an aggregate function?
Data is say categorised as follows:
Category Value
1 5
1 4
1 2
2 7
2 4
2 1
3 7
3 4
3 12
....
I want the median value for each category:
ie
Category Median
1 4
2 4
3 7
Access help states:
aggregate function
A function, such as Sum, Count, Avg, and Var, that you can use to calculate totals. In writing expressions and in programming, you can use SQL aggregate functions (including the four listed here) and domain aggregate functions to determine various statistics.
ie doesnt include MEDIAN - so how can I do this?