By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,458 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,458 IT Pros & Developers. It's quick & easy.

How to calculate the Median in a Total Query (Group by) with several criteria

P: n/a
Hello,

I need to calculate the median and percentile of values in a group by
query satisfying several criteria the user is asked to fill in when
opening the query.
A have a table called RX with this kind of data :

HOSP TYPE SUB DAP

A THO F 1
A THO F 2
A THO P 1
B THO P 5
B LWZ F 7

When opening the query, the user has to fill in a value for HOSP in a
dialog box and can fill in a value for TYPE and SUB if he wants.

So for example, I need the median for HOSP = A ; TYPE = THO and SUB = F
or the median for HOSP = A and the different TYPE and SUB

Help would be appreciated,
Many many thanks

Nov 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.