In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Risk based sampling

JingYih_Herbalife
8 - Asteroid

Example:

 

I have 30 employees, each with 20 expense report numbers, each report number 5 types of expenses attached to them, all with different amount spent. Hence a total of 3000 line items. Of the 3000 line items I want to samples, ensuring that each employee with at least each expense type that has the highest amount spent, without overlapping reports, to be selected as my samples. 

1 REPLY 1
drew9
9 - Comet

Hi @JingYih_Herbalife ,

 

I think an iterative macro will be your solution, but can you elaborate further? For your sample, do you want the highest amount spent for each of the 5 expense types for all 30 employees (150 records)?

Labels
Top Solution Authors