What substitution data is
Retailers and data agencies produce reports that say, for each product, what happens to its sales when it is unavailable. They go by several names: substitution, switching, transferable demand, or group impact analysis. Whatever the name, Spanner holds the same three things for each product:
| Total demand | How much the product sells. Usually its sales over the period of the report. |
| Substitutes | The products its demand transfers to, each with the amount that transfers. |
| Lost demand | What buys nothing when the product is unavailable. Total demand is lost demand plus what transfers. |
A document can hold several data sets, for example one for each retailer. Each has a name, and the demand model is built from the one you choose.
Importing it
Open the document that holds the category's products, choose Interface › Import Substitution Data, and pick the file: an Excel workbook or a CSV file.
The import window has five tabs, in two groups, because reports usually keep the transfers and the totals in different places. The first three tabs are for the demand that transfers between products: two that say which columns are which, one for each way a report can lay its substitutes out, and one that matches the report's products to yours and imports. The last two do the same for total and lost demand.
First, the demand that transfers
Reports lay their substitutes out in one of two ways, and there is a mapping tab for each.
Substitutes down. One row for each product and substitute, so a product with five substitutes fills five rows:
| Product | Substitute | Transferred Sales |
|---|---|---|
| Brand A 4x440ml | Brand A 10x440ml | 4,200 |
| Brand A 4x440ml | Brand B 4x440ml | 2,900 |
| Brand B 4x440ml | Brand A 4x440ml | 3,100 |
Substitutes across. One row for each product, with its substitutes side by side:
| Product | Sales | Substitute 1 | Substitute 1 Transfer % | Substitute 2 | Substitute 2 Transfer % |
|---|---|---|---|---|---|
| Brand A 4x440ml | 20,000 | Brand A 10x440ml | 21% | Brand B 4x440ml | 14.5% |
| Brand B 4x440ml | 12,400 | Brand A 4x440ml | 25% | Brand C 4x440ml | 10% |
Both tables say the same thing about Brand A 4x440ml: 4,200 of its sales transfer to Brand A 10x440ml, which is 21% of 20,000.
- Choose the sheet that lists each product with its substitutes.
- Say which columns are which, on the mapping tab that suits the report: Map Substitutes Down or Map Substitutes Across. Both are described below. Then click Next.
- Match the products. Each product in the report is listed under External ID, beside the Spanner Product it has been matched to. Spanner fills in those it can. For the rest, click the arrow at the end of the row and pick the product. The red cross clears a match. Leave a row blank when your document has no such product.
- Import. In Import to, pick a data set, or type a name for a new one, and click Update Substitute Data. When the data set already exists there is also Overwrite Substitute Data, which replaces what it holds.
Map Substitutes Down
Type the column letter into the Product, Substitute and Transferable Demand boxes at the foot, and press Enter or move to another box. Each column takes the colour of its box, so you can see what you have chosen. If codes and descriptions are in separate columns, tick Separate Descriptions and two more boxes appear.
Map Substitutes Across
Here you say where the first substitute is, and how the pattern repeats along the row. The boxes at the foot are:
| Product | The column that holds each product's code. |
| First Substitute | The column that holds the first substitute's code. Spanner then reads the headings. Where the same heading comes again with its number one higher (Substitute 1, Substitute 2 and so on), or word for word, it fills in Number of Substitutes and Repeat Every for you. |
| First Transferable Demand | The column that holds what transfers to the first substitute. |
| Number of Substitutes | How many substitutes each row holds. |
| Repeat Every | How many columns it is from one substitute's columns to the next's. |
| Multiplier | Optional. A column that every transfer on the row is multiplied by. Use it when the report gives each transfer as a share of the product's sales: put the sales column here, and Spanner works out the amounts. Leave it empty when the transfers are already amounts. |
For the example table above, whose columns run from A to F, that is Product A, First Substitute C, First Transferable Demand D, Number of Substitutes 2, Repeat Every 2 and Multiplier B.
Every substitute's columns are coloured, not only the first's, so a wrong number or repeat shows on the sheet at once. The Multiplier column is yellow. With Separate Descriptions ticked there are also boxes for Product Description and First Substitute Description, and the description columns repeat as the code columns do. Next appears once First Substitute and First Transferable Demand are filled in.
Spanner leaves out a substitute with no code, a transfer that is not above zero, and a product listed as its own substitute. Where the same product and substitute come up more than once, the amounts are added together.
The three icons above the list copy it to the clipboard, paste it back, and read matches from a match file, so you can do the matching in Excel if you prefer. Leave Update Matches ticked and the codes you match by hand are added to each product's Matches, so the next import finds them.
Spanner matches a code in the file to a product by its ID, then its barcode however many digits it is written with, then the product's other codes (its Matches).
Then, total and lost demand
- Choose the sheet that holds one row for each product.
- Say which columns are which, on Map Total / Lost Demand Columns: the Product, its Total Demand and its Lost Demand. Give either or both. If the report has only one of the two, Spanner works the other out from the transfers. Click Next.
- Match and import, as before, with Update Total/Lost Data or Overwrite Total/Lost Data.
A report with its substitutes across usually has each product's sales on the same row, and often its lost demand too, which it may call sales at risk. Use the same sheet for this step.
Such a report tends to name only each product's top few substitutes, so its transfers add up to less than the demand that really transfers. Where it gives lost demand, map both Total Demand and Lost Demand. With total demand alone, Spanner works lost demand out as the total less the transfers it was given, and so counts what goes to the substitutes that were not named as lost.
- "Import the substitution report in this workbook as a data set called Retailer A, and tell me how much of it matched."
- "Which codes in the substitution data have no product, largest first?"
When the data doesn't match your products
It rarely will, exactly. The report may be older than your planogram, or newer. It may come from a retailer whose range differs from the one you are planning. So expect two kinds of gap:
- Products in your document with no data. They were not in the report.
- Codes in the report with no product. They are not in your document. Spanner keeps them, so that if the product is added later, the data is there for it.
This is normal, and it is not a reason to stop. Match what the codes give you, note how much is unmatched, and carry on. Substitution data is most of the picture, not all of it. The demand model exists to carry what the data shows to the products it doesn't cover, by their attributes.
When a code is really one of your products
Some gaps are only a change of pack. Suppose your planogram is the older of the two and still has Brand A 20x440ml, while the report has Brand A 18x440ml, the pack that replaced it. The import finds no product for the 18 pack, so its row is left blank. But what the report says about the 18 pack is the best evidence you have for the 20 pack: they are the same product to the shopper.
Give the 18 pack's data to the 20 pack on the manager's Substitute Gap Data tab:
- Choose Edit › Manage Substitution Data, pick the data set, and open Substitute Gap Data. It lists every code that your products transfer demand to and that has no product, largest first.
- In the code's Match to box, type part of the product's name, or click the arrow, and pick the product from the list. The product takes the transfers that were going to the code, and the code's own total demand, lost demand and substitutes where the report had them.
- The round red button at the end of the row undoes a match.
| Column | What it shows |
|---|---|
| Unmatched Substitute ID | A code in the report with no product in your document. |
| Parent Products, Parent Products Sales | How many of your products name it as a substitute, and their sales by the measure chosen at the top. |
| Unmatched Transferable Demand | The demand those products transfer to it. This is what the data loses while the code is unmatched, so work from the top. |
| On Selected Planogram, Positions | Whether any of those products is on the selected planogram, and how many positions they have. |
The colours in the list tell you what a match would do:
| Green | A straightforward match. |
| Orange | The product is already a substitute of some of the same products. Matching adds this demand to what already transfers to it. |
| Red | The product is one of those that transfer demand to this code. A product can't be its own substitute, so it can't be chosen. |
The Substitution Data manager
Choose Edit › Manage Substitution Data and pick the data set. The manager shows the data product by product, and arranges the products so that those that substitute for each other sit together.
| Tab | What it is for |
|---|---|
| Substitute Gap Data | The codes in the report that have no product, for matching by hand. See the section above. |
| Products Substitutes Summary | Every product with its total and lost demand, and how many substitutes it has. |
| Grouped Products Matrix | Every product against every other, coloured by how strongly they substitute. |
| Grouped Products Tree | The groups as a tree, with a read-out on each division. This is where you run Group from Bottom and Group from Top, and move products and groups by hand. |
| Grouped Products Tree Rules | Shown once there is a grouping. The rule that defines each group, in terms of your classifications. |
| Grouped Products Cross Classifications | A check on those rules. It counts the products that meet the rule of more than one group, and lists them where the two groups cross. See From a grouping to a model. |
| Grouped Products Demand Shapes | A chart for each top group, and Create Demand Model. See From a grouping to a model. |
Products Substitutes Summary
Start here after an import, to see what you have. Each product is shown with its sales, whether it is on the selected planogram, its Total Demand and Lost Demand, the number of Substitutes it has, and the number of products it is a Substitute of. Hover over either number to see the products. Products shaded orange have no data.
Which products are grouped
A product is included when it has demand, has at least one substitute in the document, and is itself a substitute of some other product. Products you have excluded from the grouping are left out.
The number in each cell of the matrix
White is no transfer, yellow is moderate, and red is a third or more. For two groups, the same sum is taken over every link between their products. The black outlines mark the groups, one inside another for each level.
Group from Bottom
There are two ways to build the groups. They answer different questions, so they give different results, and both are worth looking at. Neither is "the answer": they are evidence for you to decide with.
Group from Bottom finds each product's closest substitutes and builds upwards.
- The first level. Every product starts on its own. The product with the strongest link to anything else is joined to that partner, and this repeats until no single product has a link left. A product still standing alone goes with the group that receives most of its transferred demand.
- Higher levels. Groups are then merged, strongest link first. The bar for merging is lowered step by step, and each step at which something merges becomes a level of the tree. Merging stops when no two groups are linked above the Minimum Group Threshold.
What it tells you
- The first level shows the tightest substitutes: products shoppers treat as nearly the same thing. Typically the same brand and variant in another pack size, or the same flavour in another brand.
- Look inside each first-level group. What its products share, often the brand or the flavour, is what shoppers hold to. What varies inside it, often the pack size, is what matters least to them.
- Each product is placed by its single strongest link, so you can always see why two products are together.
What to be careful of
- Because a product follows its one strongest link, a weakly linked product can end up in a top group it has little to do with. The top level is the least reliable part.
- The number of levels depends on the Minimum Group Threshold. Try more than one setting.
Group from Top
Group from Top looks for the places where the category divides, and works downwards. It starts with everything as one group, so the first divide comes from the data too.
Fair share
If shoppers had no preferences beyond popularity, the demand a product gives up would spread over the other products in proportion to their size. That is fair share. Group from Top looks for divisions that hold much more transfer inside each part than fair share would.
Split quality
For any division of a group into parts:
How a group is split
Spanner tries several ways of dividing the group, keeps the best, and only makes the split if its quality reaches the Minimum Split Quality (50% unless you change it). Each part is then split again in the same way, until nothing reaches the minimum.
So a group is divided where a real divide exists, whatever its size, and a group whose products all substitute for each other is left whole, however large it is.
The levels of the tree
The levels are bands of strength, not depth. With the minimum at 50%:
| Top level | Only divides of 83% or more. |
| Next level | Adds divides of 67% or more. |
| Lowest level | Adds divides of 50% or more: everything that was accepted. |
The top level shows the strongest boundaries in the category. These are the natural candidates for demand segments. The levels beneath show weaker structure inside them, which is where to look for attributes.
What to be careful of
- A small group can show a high split quality by chance. Treat splits of four or five products with caution.
- A product with almost no recorded transfer can't be placed with confidence by any method.
Reading the tree
The read-outs are worked out from whatever grouping is on screen: Group from Bottom, Group from Top, or your own after moving things by hand. That makes them a common yardstick.
| Above each divided group | The split quality, then the classification that best matches the division, for example 92% Flavour Group. |
| To the right of the top groups | The same, for the whole category divided into the top groups. |
| Red text | The division is below the Minimum Split Quality. |
| A "?" in place of a classification | No classification matches the division. |
| Hover over a read-out | Split quality, the share retained inside the parts, fair share (shown as Share by Size) and the match in full. |
Classification match
For each division, Spanner looks for the classification whose values best tell which part a product is in, and reports the share of products it gets right. A classification with a different value for nearly every product, such as a very detailed brand list, explains nothing and isn't reported. Two classifications together are reported only when they do clearly better than the best single one, for example Pack Type + Pack Size.
Edge products
A diamond beside a product marks an edge product: one that fits another top group nearly as well as its own. Orange means it is close. Red means it fits the other group better than the one it is in. Hover to see which group and by how much. Edge products are the ones to decide by judgement rather than by the numbers.
Using the two together
| Question | Look at |
|---|---|
| What are the candidate demand segments? | Group from Top, the top level. |
| Do my own groups hold together? | Arrange the top groups by hand, then read the split quality to their right and the edge products. |
| What matters inside a segment? | Group from Top, the levels below the top, and the classification named on each division. |
| Which attributes hardly matter to shoppers? | Group from Bottom, the first level: what varies between the products inside a group. |
| Are my classifications the right ones? | Divisions marked "?", and classifications that are never named. |
| Which products need a judgement call? | Edge products, and products that sit in different groups under the two methods. |
Where the two methods agree, the structure is solid. Where they disagree, the products involved are boundary cases, and that is where your knowledge of the category has to decide.
- "Group the substitution data from the top and tell me where the category divides."
- "Test whether Segment then Brand is how shoppers divide this category."
- "List each product with its group and its Segment, Pack Type and Brand, and tell me what the coding misses."
From a grouping to a model
The last tab, Grouped Products Demand Shapes, charts each top group: how its sales build up as its distribution builds. Choose the measures and the period at the top.
Each group's curve is described by two numbers in the legend, A and B: the first product serves A, and each further one adds less, by B. A product in half the stores counts as half a product. This is a rough first stab at a group's shape, and useful for seeing whether groups behave differently. The demand model gives a fuller fit: see The equations, and how well they fit in Part 1.
Create Demand Model then opens the Demand Model editor on a new model, with a segment for each top group that has a rule, and builds it straight away. The rules are the ones on the Grouped Products Tree Rules tab.
Check the rules first
A rule describes a group in terms of your classifications, and two rules can claim the same product. Grouped Products Cross Classifications shows where that happens. The line at the top counts the products that meet more than one group's rule, and the grid lists them where the two groups cross.
In a model, a product goes to the first segment whose rule it meets, so for these products the order of the segments decides, not the data. If there are more than a few, tighten a rule on the Tree Rules tab before you create the model.





