Selection: How do I make a N% per variable selection?

Added in Q4 2023

In addition to carrying out N per variable sampling, you can also carry out N% per variable sampling in a selection. This satisfies the common requirement of sampling N% of records whilst maintaining distribution across the selected variable.

Let's look at an example.

  1. Create a selection that identifies people who are Managers, Directors or Professionals.

Imagine that of the 108,876 people identified, you are interested in creating a 10% sample based on income group - low, middle and high. If you drop a cube onto the selection above and add Income Groups as a dimension, you can see the counts of people in each group. Adding the % Column statistic then allows you to see the distribution of records across the categories.

To create a 10% sample based on income groups, whilst maintaining the distribution for the records selected, return to the selection tab and:

  1. Right click on the selection summary row and select Apply 'N' per 'Variable'.

  1. Click on the People drop-down and select % of People then set the required percentage - e.g. 10%.

  2. Drag and drop your grouping variable onto the drop-box - e.g. Income Groups.

  3. Click OK and rebuild.

You can now see that 10,888 people are selected, and that the distribution across the low, middle and high income groups remains constant.

 

There may be occasions when you want to sample a specific number of records but still maintain distribution. You can achieve this using the third option in the N Per Variable dialogue - selecting Total People. For example, to modify and select a total of 1000 people, return to the selection tab and:

  1. Right click on the selection summary row and select Modify N Per 'Variable'

  2. Select Total People and set a total of 1000 records to be selected across Income Groups.

  3. Click OK and rebuild.

You can now see in the cube display that the distribution is maintained (allowing for appropriate rounding) and the number of people per income group selected accordingly.

 

Related topic: