Just count all records and break them into 6 groups based on which percentile of the total record number the current record count falls into.
So the idea of group-generating formula is:
if the record number in 1...to (16.66% of the total records) then 'Group1' else
if the record number in (16.66% of the total records + 1) to (33.33% of the total records) then 'Group2' else ....etc....else 'Group 6'
I'm not sure that is possible....Summary operations (count being one of them) cannot be used for grouping purposes.
Aside from that We don't know the reason for this grouping. Let us assume you can break up the records in the manner that you suggest...we are given no reason as to why 6 artificial groups like this are required. further grouping would be meaningless since the first grouping is really meaningless
Jim Broadbent
The quality of the answer is directly proportional to the quality of the problem statement!
I can imagine reasons for random grouping. For examples, existing invoices are randomly assigned to 6 different people for audition. Of course, something more to be said about the grouping, for example that the groups to be of about the same volume. Otherwise we can do this: first record goes to the first group, the second one goes to the second group, etc, the rest goest to the sixth group. I see no contradictions in this way of grouping with the initial question.
OK, I have anothier idea. Along with every record we select a number from 0 to 5. It can be, for example, the record number modulo 6. Then we just group by this field.
Thank you both for your responses, I wanted to use this random grouping as part of a bar graph. The "On change Of" area.
I wanted 6 changes to take place.
Basically, I would have wanted all records to be part of each of the 6 groups.
I have since figured out how to do the chart a different way, but am still intrested if anyone knows a way to create artificial these groups.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.