Grouper basics · Step 2

Bringing In Your Data

Grouper finds the bubbles from a retailer's substitution report alone, then measures your coding against them. So it needs two kinds of file: the report, and whatever says what each product is. This guide covers adding both, keeping several versions of the report side by side, and what to do when next year's files arrive.

What substitution data is

Retailers build it from their loyalty card data. For each product, it says which other products its shoppers switch to when it isn't there, and how much goes to each. Grouper calls what goes between two products their switching, and finds the bubbles from that and nothing else.

Retailers and data agencies send these reports under several names, and each lays its columns out a little differently. Grouper doesn't keep a list of known reports. You tell it once what each column is, and it reads any report that has these:

The productIts code, its name, or both in one cell. A code is better: names change spelling from report to report.
Its substitutesFor each one, its code or name, and the spend that transfers to it, in pounds or as a share.
Its salesNeeded when the transfers are shares, so that Grouper can turn them into pounds.
What is lostOptional. The share of sales that no substitute picks up, where the report gives it.

Anything else the report says about each product can come in at the same time: its brand or sub-category as a classification, a number such as its price as a metric, and shopper figures such as the share bought by each life stage. The report can be an Excel workbook or a CSV file.

Two layouts

Reports put the substitutes in one of two places, and Grouper reads both.

In the product's row. One row for each product, with its substitutes side by side:

Product IDProduct NameTotal SalesSubstitute 1Substitute 1 %Substitute 2Substitute 2 %
100001Brand A Oat Bar 5pk12,40010000221%10001414%
100014Brand B Oat Bar 5pk9,80010000125%10002010%

Down in rows. One row for each product and substitute, usually on a sheet of its own, with the products and their sales on another:

Product IDSubstitute IDTransferred Sales
1000011000022,604
1000011000141,736
1000141000012,450

Both say the same about Brand A Oat Bar 5pk: 2,604 of its sales go to product 100002, which is 21% of 12,400.

Many reports list only each product's top few substitutes; others list them all. Grouper works out which, and tells you, because a short list leaves out the smaller links between products.

Your files stay where they are. Grouper reads them on your own PC and sends nothing anywhere. See our privacy policy. This guide is for Grouper 1.0. If you haven't made a project yet, start with Step 1, Getting Started.
Using Spanner too? Spanner 2 reads the same kind of report for its demand model, with an import of its own. See Substitution Data and Grouping in the Spanner 2 guides.

Adding a report

Open your project. Under Substitution data, click Add substitution data… and choose the file. Grouper reads it and shows the import screen, Add substitution data, in place of the project page.

  1. Say where the substitutes are. In the Substitute data box at the top, choose In the product's row or Down in rows. Grouper picks one to begin with: check it.
  2. Check the sheet. Each sheet that Grouper reads has a box of its own, with the Sheet and the Header row, the row the column headings are on. Grouper chooses the sheet and guesses the header row, so change either if it is wrong. View sheet opens the sheet as it is in the file, with the header row marked, in a window that stays open beside the screen. For a report down in rows, click + Add a sheet, so that one sheet has the substitutes and the other the products.
  3. Say what each column is. Every heading in the file is listed under Heading in the file, with a few of its values under For example. Choose what it is from the list under What it is. A column left as (not used) is left out. The next section explains the choices.
  4. Name the version. Under Which version of the data this is, the Name starts as the file's name. Give it one you'll know, such as This year. Retailer, Period, Region, Store format and Shopper group are optional. They say what two versions differ in.
  5. Check the foot, and add. The foot of the screen is always in view. Under What this file gives it says how many products and pairs were read, whether the file lists every substitute or only the top few, and what was left out. If something must be put right first, it says Before this file can be read, and what to do. Then click Add to the project.
Grouper's import screen: the file's headings listed down the page, each with what it is chosen beside it, such as Product ID, Classification or Substitute Name, and at the foot what this file gives, with Cancel and Add to the project
The import screen: every heading in the file, with what it is beside it. The foot always says what the file gives, or what has to be put right before it can be read.

Grouper reads the file again after every choice, so the foot always matches the screen. A report can have a hundred columns or more. Find a heading lists only the headings with those letters in them, and List only the columns in use hides the rest.

Choose another file…, at the top, reads a different file in this one's place. Cancel goes back to the project without adding anything.

What each column is

The list under What it is is short, and each choice says what the figure is, so there is nothing else to set.

Product IDThe retailer's own code for the product.
Product NameThe product's description.
Product ID + Product NameBoth in one cell, such as "BRAND A OAT BAR 5PK - 100001". Grouper takes them apart.
Substitute ID, Substitute Name, Substitute ID + Substitute NameThe same, for the product that shoppers buy instead.
Transferred Spend (absolute)The sales that move to the substitute, in pounds.
Transferred Spend (% of total spend)The share of the product's sales that moves to the substitute. Grouper multiplies it by Total Spend.
Transferred Spend (% of transferred)The substitute's share of what transfers at all. Grouper multiplies it by the share that transfers and by Total Spend.
Total SpendThe product's sales, in pounds.
Lost Sales (%), Lost Sales (absolute)What no substitute picks up.
Transferable Sales (%)The share that moves to a substitute: 100% less the share lost.
ClassificationText that says what kind of product it is: a brand, a sub-category. Its name in Grouper starts as the heading, and you can type over it.
MetricA number about the product: its price, its distribution, its weeks on sale. Named in the same way.
Shopper Profile (%), Shopper Profile (absolute)One shopper group's share, or its sales or customers. Give the name of its set and the group.

For the first example above, that is Product ID as Product ID, Product Name as Product Name, Total Sales as Total Spend, Substitute 1 as Substitute ID and Substitute 1 % as Transferred Spend (% of total spend).

Numbered columns are set together. In the product's row, each substitute's columns carry its number, under Number, or name. Set Substitute 1, and Grouper sets Substitute 2, Substitute 3 and the rest the same way, each with its own number, and says so above the list. So a report with ten substitutes is a handful of choices, not dozens.

Shares. A share may be written 45%, 0.45 or 45, and Grouper reads them alike: where any figure in a column is above 1.5, the whole column is taken as hundredths. Where the transfers are shares, set Total Spend too. With Transferred Spend (% of transferred), also set Transferable Sales (%) or Lost Sales (%) if the report has either. Without them, Grouper takes all of a product's sales to transfer, and says so.

Shopper profiles. Set one column as a shopper profile, and Grouper looks for the columns worded the same way, such as the other life stages, and offers them with tick boxes. Tick those that belong and click Set the ticked columns, or click No thanks. They are only offered, because a column worded the same way needn't belong. Each group, such as Young Family, is filled in under Shopper group from its heading. Give the set a name, such as Life stage, and the columns set with it take the same name.

What is left out. Grouper leaves out a product named as its own substitute, a transfer with no figure or zero, and a row with no product, such as a total. It adds together the same pair listed twice, and sets aside a transfer to a substitute that isn't a product in the file. Nothing is dropped without being counted at the foot of the screen. A product with no substitutes, that no other product names, is kept, though it can't be placed among the others.

Grouper remembers

When you add a file, Grouper remembers what you said each heading is. Add another file with the same headings, such as next month's report from the same source, and the screen starts with its columns already set. The bar at the top says which earlier import the settings came from. Check them, and click Add to the project.

  • Settings carry over by heading. A heading the new file has too gets its role back. One that has been renamed is left with no role, and the bar lists the headings it didn't find. Give the new heading its role.
  • Longer lists are set in full. A file with ten substitutes, where the last had five, has all ten set.
  • Sheets are found by their headings, not by their names, which often carry the date a report was run.
  • Coding sheets are remembered apart from substitution reports, so one never starts from the other's settings.

There are no templates to name, save or keep up to date. Grouper keeps the settings of your last 30 imports, and starts each new file from those that carry over the most of its headings. Start from blank clears every role on the screen. What Grouper remembers changes only when a file is added.

When you change a version that is already in the project, the screen starts from that version's own settings instead.

Versions and the base

A project can hold several versions of the substitution data side by side: this year and last, a month on, a region or a store format, or the same period from another source. Add each one with Add substitution data….

Each version is a row on the project page, with its name, what slice it is, its file, and what reading it gave: how many products and pairs, and whether the file lists every substitute or up to a number for each product.

Grouper's project page: rows for versions of the substitution data, each with Make this the base, Change and Remove, the Add substitution data button, and the Product properties section with a row for each file and its Change and Remove buttons
The project page: a row for each version of the substitution data, with what reading its file gave, then the files of product properties, each with how many of the project's products it has and what it brings.

The base

One version is the base, marked Base. The first you add is the base. The grouping opens on the base version, and the others are compared with it. Where versions have a classification of the same name, the base's values come first.

To make another version the base, click Make this the base on its row. You don't have to, to see another version's bubbles: the grouping screen lets you choose any version that has been read.

Below the lists, The products says what the versions have between them: how many products in all, how many are in every version, and how many only in one. A product missing from a version isn't an error. It may not be ranged in that store format, or be new this year.

Changing and removing

  • Change… opens the import screen as Change how this substitution data is read, with the version's own settings. Change what you need and click Save the changes.
  • To put a newer file in a version's place, keeping its name: Change… › Choose another file… › Save the changes.
  • Remove takes the version out of the project, after asking. The file itself isn't touched. If you remove the base, the first version left becomes the base.
  • The project is saved whenever its lists change, so there is nothing to save by hand.

Product properties

Substitution data says which products shoppers switch between. Product properties say what each product is. They come from files with a row for each product: a coding sheet, a product library, a file of metrics such as price and distribution, or shopper figures by product. Add as many as you have.

Add product properties… is under Product properties on the project page. You can choose it once a version of the substitution data has been read, because the properties are given to its products.

  1. Choose the file. Click Add product properties…. The same import screen opens, as Add product properties, with one sheet and no version to name.
  2. Set the product's code. Set the column that has it as Product ID. It must be the code the substitution data has.
  3. Set the columns to bring in, each as a Classification, a Metric, Shopper Profile (%) or Shopper Profile (absolute). Under Name, type a better name over a heading that says nothing, such as Description 26. Leave the rest as (not used).
  4. Check the foot, and add, with Add to the project.

Beside each heading, What it has says how full the column is and how many values it has, so you can see which columns are worth bringing in. Coding sheets often have many empty columns, so Leave out empty columns is ticked to begin with.

Each file is then a row under Product properties, saying how many of the project's products it has and what it brings, with Change… and Remove as a version has. Removing a file takes away what it gave the products, but not the file itself.

How products are matched

By code, and only by code. A row is one of the project's products when its Product ID is the same text, but for capitals and spaces. Nothing is matched by likeness. With no column set as the ID, products are found by name, which is less sure.

The foot says how many of the project's products the file has. The others get nothing from it. That count is how you tell the right column from the wrong one. If the column you chose finds none, Grouper says so, shows a code from each side to compare, and won't add the file until a column finds some.

A file of product properties adds no products: the project's products are those of its substitution data. Rows for other products are left out, and counted.

When files disagree

Two files may have a classification or a metric of the same name. They are then one: the first file's value stands, and later files fill only what it leaves blank. The order is:

  1. The files of product properties, in the order they are listed.
  2. The substitution data's own, the base version first.

Files are listed in the order you add them. To change it, remove a file and add it again. On the project page, The products says which classifications more than one file has, and how many values differ between files.

A value you type on the coding screen stands over any file's.

Shopper figures from a file of product properties go to every version. A version whose own report has shopper groups of the same name keeps its own.

The project keeps where the files are, not the data

A Grouper project holds where each file is, what each column is, and what you have decided: your coding, and the names you give bubbles. It never holds the data. Each time you open the project, Grouper reads the files afresh.

That makes next year's files easy:

  • A new report beside the old. Add it as a new version with Add substitution data…. If its headings are the same, its columns are already set. Make it the base when you want the grouping to open on it.
  • A newer file in a version's place. Change… › Choose another file… › Save the changes.
  • A file updated where it is. Nothing to do: the project reads it the next time it opens.

The name you give a bubble is kept against its centre, so it holds when the data changes and the bubble still turns on the same product.

When a file has changed

The sheet has been renamedGrouper finds it by its headings.
Title rows were added above the headingsGrouper finds the header row.
Columns were added or movedNothing changes: a column is known by its heading.
A column that isn't needed has goneThe file is read without it.
A column that is needed has gone, or been renamedThe row says which headings aren't in the file. Click Change… and give the new heading its role.

When a file has moved

If a file has been moved or renamed, or is on a drive that isn't connected, its row says Grouper can't find it. Click Change…, choose the file where it now is, and click Save the changes. The project keeps the new place.

The same goes for a project you pass to a colleague. They need the files too, and Change… points each row to where they keep them.

What next

With the data in, the project page offers the next two steps:

  • Open the coding… shows every product with its classifications, like a spreadsheet. Fill the gaps by hand, or have an AI fill them. See Step 3, The Coding Screen.
  • Open the grouping… shows the bubbles, sub-bubbles and families that Grouper finds in the switching. See Step 4, Reading the Grouping.

Fill the gaps in the coding first if you can. The bubbles don't depend on it, but what Grouper tells you about them is measured against it.

An AI can help with both. Grouper writes the text, you paste it into the AI chat you use, and paste the reply back. See Step 5, Using an AI with Grouper.