Quintiles/Percentiles

J

Jeremy

I am trying to split my data set into five equal parts.
Any ideas? I have tried TOP N, TOP N PERCENT, sub-
queries, but no use. Thanks.
 
T

Tom Ellison

Dear Jeremy:

I am thinking that if you rank the rows and count them, you could then
perform integer division of the rank value by 1/5 of the total count,
yeilding a value 0 to 4 which divides the results into 5 roughly equal
sets.

If the value on which you rank is not unique (ties between multiple
rows) or if the total number of rows in the query is not exactly
divisible by 5, then you are not going to get 5 sets with exactly the
same number of rows, but that's to be expected.

I am trying to split my data set into five equal parts.
Any ideas? I have tried TOP N, TOP N PERCENT, sub-
queries, but no use. Thanks.

Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Quintiles 3
Split form 0
Converting percentiles to quintiles 3
VBA word change keys 0
Quintiles 0
working out the percentile 2
Percentile Interpolation 2
Ranking without skipping ranks and percentile 3

Top