https://stephaniexuuu.github.io/Sampling_assistant/
Dear consultants,
This program is designed to assign cases. This is just a demo and created by an intern (which is me). It can only be used to save your time instead of business.
And this is only a tool, no data would be stored.
Please reach out to me if you find any bug and would like to provide some suggestions of improvements.
Coach: Arya Wang UI: Shirly Ma
- A single-sheet Excel (.xlsx) file. e.g. Mock data:
-
Every column you may filter on (region, manager, customer level, etc.) must have consistent, case-sensitive values.
-
Empty cells are treated as “no value” (they will not match any quota).
- Pick the column that defines your top-level buckets (e.g. Manager).
-
A table lists every unique value plus the number of available rows.
-
For each value you can write either:
-
Bucket rename (optional)
-
Tick Enable Bucket to map raw values to aliases (e.g. “City Y” → “City”).
-
The sampling engine uses the alias; the original is still stored in the file.
-
-
Select a second column (e.g. Customer Level).
-
For every parent value an expandable table appears.
-
Fill counts/ratios the same way as above; the programme tries to satisfy child quotas before topping-up the parent total.

-
Click Add Constraint, choose any extra column (e.g. Department).
-
For each value type a Count or Ratio.
-
If you tick “Enable Bucket”, you can merge raw values into labels here too.
-
After sampling the app checks these totals; if they cannot be fully satisfied you’ll see a yellow warning, e.g.
⚠️ Department=Neurology short 53 (taken by Geriatrics +15)
-
The file is still produced.
- Remember to add priority level under each global constraint
- Press 'Generate' and 'Download' your sample results
- If any condition not satisfied, you can fine-tune by reading through the warning in console
Enjoy the sampling!
