Hi there,
I have a data set that looks like this...
Zone Units Rank
2 12,000 1.75
2 550 3.41
3 750 2.32
4 100 7.54
What I want to do is grab a percentage of the units according to the zone up until a certain total number. Example I need 50% of the units to be from zone 2 but the total units for all zones should not exceed 1 million. But I also want it to grab the units based on rank, the lower ranking lines should be added to the sample set first.
Thank you for your time,
Natalia