
Originally Posted by
treebark
So great code and thanks, but this accomplishes what I originally was doing: assigned records evenly for each employee
I need to be able to assign evenly by the entity, which each entity has a varying number of records associated:
Entity 1 - 5 Records
Entity 2 - 20 Records
etc.
I have to assign each employee the most even numbers of records but they have to have all the records assigned to them for the entities that are assigned to them. I have even been able to assign by entity and sort by descending count of the records per entity and that gets me pretty even, but because some entities have only 1 record I could get it even more evenly distributed, but that is the part I am unaware of how to do: being able to evenly distribute records based on entity
Thank you