New Multi-Select quota based on least fill (percentages)

Hi all ... using the new multi-select quota tool. Fine piece of kit. BUT least fill based on percentages doesn't seem to be working as expected.

Settings here:


Begin Unverified Perl
# ****************************************************************************************************
# Parameters
# ****************************************************************************************************
my $quotaBaseName = 'Brand';
my $passInBaseName = 'QuotaHelper';

# The number of quota questions, and the maximum number of choices to make for any respondent
my $numberOfQuotas = 2;

# The number of choices to make for the current respondent, between 0 and $numberOfQuotas
my $numberOfChoices = 2;

# Order to check cells for membership
# 1 - Sequentially
# 2 - Least fill (percentages)
# 3 - Least fill (counts)
# 4 - Random
my $membershipOrder = 2;

# Settings for each quota cell
# "limit" - The maximum number of respondents for this cell (may be exceeded).
# "qualify" - The logic controlling whether the current respondent should qualify for this cell. The default "return 1" will have all respondents qualify.
my %quotaCells = (
1 => {
limit => 300,
qualify => sub { return LISTHASPARENTMEMBER("C4forC99",1); }
},
2 => {
limit => 100,
qualify => sub { return LISTHASPARENTMEMBER("C4forC99",2); }
},
3 => {
limit => 100,
qualify => sub { return LISTHASPARENTMEMBER("C4forC99",3); }
},
...


... first quota cell has a limit of 300 and all the others have a limit of 100, so I was expecting that if the first one qualifies, it will get picked during testing. But it's not. On my first run-through, cells 15 and 10 were picked.

Am I doing something dumb again?

On 9.10.1.

Resolved
7 replies