Calculating Percentile Ranks in MS Access 2003

Posted on 2006-05-30
Last Modified: 2012-05-05
I have a table of about 500,000 records, and I want to determine the 10th, 20th, 30th, etc.  percentiles on several different fields.  Is there a quick and easy way to do this in Access?
Question by:jrimmele
    1 Comment
    LVL 92

    Accepted Solution

    Hi jrimmele,

    The following query gets the 10th %ile.  To use a different percentile, udpate accordingly.

    SELECT Max(s.SomeField) AS 10thPercentile
        (SELECT TOP 10 PERCENT SomeField
        FROM SomeTable AS s
        ORDER BY s.SomeField) AS s



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    This isn't a frequent question on EE. I must have seen it three or four times (among several thousand questions). However, I use this trick quite often, most frequently as a delayed Current event. A form does not expose it's calculation dependenc…
    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now