Results 1 to 2 of 2
  1. #1
    aat is offline Advanced Beginner
    Windows 7 Access 2010 32bit
    Join Date
    Sep 2010
    Posts
    30

    Quintile

    Hi everyone!

    i hope this one is easy. I would like to run a query after i have updated a record, that returns the quintile ("sixtile" actually but if you show me quintile i suppose i can easily vary it) of my record based on one particular field, across the database. So, say the population for that field varies between 0% to 100%, if my record has a % of 15%, it should return 1 as first quintile.
    On excel i use the following formula, where "factor" is my field, and min / max are relating to the population for that field: =IF(ROUNDUP(([@Factor]-MIN([Factor]))/((MAX([Factor])-MIN([Factor]))/6),0)=0,1,ROUNDUP(([@Factor]-MIN([Factor]))/((MAX([Factor])-MIN([Factor]))/6),0)).


    (which is relevant for "sixtiles").

    I have not started to draft anything, but at first sight, the min / max reference are going to be a problem. Any suggestion welcome!

    Aat

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums