|
Question : How to calculate 25th percentile on an Access report
|
|
I have found the following code that should allow me to calculate the 25th percentile of a recordset: http://www.fabalou.com/Access/Modules/percentile.asp
I have created a module with that code and I am trying to use the PercentileRst function in a report (which is based on a query called Query1), to calculate the 25th percentile of a field called Unit Price. I know nothing about VB or SQL, so I guess my problem is that I'm calling the recordset the wrong way. I am writing the following in the Control source of a text box on the report: =PercentileRst (XXX, [Unit Price], 0.25)
What should I write instead of that XXX?
|
|
Answer : How to calculate 25th percentile on an Access report
|
|
I didn't write that function, so I'm not sure how it works. I would go to wherever you got it, and see if they have a version that works for groups. Sorry. :(
Dex*
|
|
|
|