Measures
A measure is one kind of figure: value sales, unit sales, distribution, rate of sale, price. A document keeps each measure for every product, in every outlet, for both periods and both years (see Part 1).
Different organisations buy different data, so they have different measures. A supplier with market data might have these:
| Code | Short description | Long description |
|---|---|---|
VALUE | Value | Value Sales |
UNITS | Units | Unit Sales |
WTD | Weighted | Weighted Distribution |
UNTROSW | Unit Rate of Sale (W) | Weighted Unit Rate of Sale |
PRICE | Price | Price / Unit |
The columns
Open Edit › Edit Document and click Measures. Each measure is a row.
| Column | What it is |
|---|---|
| Code | The measure's short code, in capitals and digits with no spaces. No two measures can share one. |
| Short Description | The name used where space is tight, such as a column header. |
| Long Description | The full name, used in menus and tooltips. |
| Hide | Tick to leave the measure out of the sales figures shown in the product editor. The document still keeps it. |
| Preset | A number every figure of this measure starts as, before any data is imported. Nearly always left empty. |
| Calculation | Empty for a measure that is imported. Filled in for one worked out from other measures, as below. |
| Format | How many number formats the measure has, with a pencil button to edit them. |
At the end of each row are the arrows, the bin and the green plus, as in every list (Part 1). A new measure is called CODE1: give it its real code and descriptions straight away. Deleting a measure deletes its figures for every product and outlet.
A measure with a calculation
A calculation makes one measure from others, using their codes. For a price where the data has value and units:
VALUE / UNITS
It is worked out separately for each outlet, period and year, from the figures of that same outlet, period and year. Use +, -, * and /, and brackets where there is more than one sign.
Number formats
The same figure can be shown in more than one way: sales as pounds, as thousands, as millions. Click the pencil in a measure's Format column to see its formats. Each has three parts.
| Part | What it is |
|---|---|
| Name | What you pick it by, such as Thousands (£k). |
| Format | How the number is written: a format code or a pattern, as in the table below. |
| Scale | What the figure is multiplied by before it is written. 1 leaves it alone; 0.001 turns pounds into thousands. |
| Format | Scale | 1234567.8 shows as | Use for |
|---|---|---|---|
N0 | 1 | 1,234,568 | Whole numbers. N1 and N2 give one and two decimal places. |
C0 | 1 | £1,234,568 | Money, with your own currency sign. C2 adds the pence. |
£#,#.0k | 0.001 | £1,234.6k | A pattern: # is a digit, the comma groups thousands, and other characters are written as they are. |
£#,#.0m | 0.000001 | £1.2m | The same in millions. |
+0.0%;-0.0% | 1 | A percentage with its sign: the pattern before the semicolon is for positive numbers and the one after for negative. 0.052 shows as +5.2%. |
In the list of formats, the green plus above the list adds a format, and each row has its own arrows, bin and plus. The first format is the one used until you choose another.
To choose, close the editor and use View › Number Format, then the measure, then the format. Reports that show the measure in its own format follow straight away.
Calculated measures
A calculated measure is a figure Spanner works out when it is needed, and never stores or imports: the change in sales between two years, growth, a share. Click Calculated Measures in the Document Editor.
| Column | What it is |
|---|---|
| Code | A small c, then capitals and digits, such as cVALUEGROU1. Spanner puts the c on and makes the rest capitals. No two can share a code. |
| Group | A heading, such as Change or Growth. Menus list the calculated measures under their groups. |
| Description | The name shown for it. It can hold words Spanner fills in, such as <CHANNEL> and <TIME1>, so one description reads correctly for every planogram. |
| Type | What it is worked out for, and what the answer is. See below. |
| Calculation | How it is worked out. |
| Format | Its number formats, as for a measure. |
The green plus above the list adds a calculated measure at the end. The plus on a row adds one below that row.
The four types
| Type | Worked out for | The answer is |
|---|---|---|
| Product/Number | Each product. Nearly every calculated measure is this type. | A number |
| Product/Text | Each product. | Text |
| Position/Number | Each position of a product on a planogram, so it can read the position's own facings and space. | A number |
| Position/Text | Each position. | Text |
Writing a calculation
Two calculated measures that most documents start with show the pattern. The first is the change in value sales. The second divides that change by last year's sales, to give growth.
| Code | Group | Calculation |
|---|---|---|
cVALUECHOU1 | Change | VALUE_OU_1_TY - VALUE_OU_1_YA |
cVALUEGROU1 | Growth | cVALUECHOU1 / VALUE_OU_1_YA |
A calculation can read four kinds of thing.
| It reads | Written as |
|---|---|
| A sales figure | Four parts joined by underscores: the measure's code; OU for the planogram's outlet or CH for its channel; 1 or 2 for the period; TY for the latest year, and YA or LY for the year before. VALUE_OU_1_TY is value sales in the outlet for the latest Time 1. |
| Another calculated measure | Its code, such as cVALUECHOU1. |
| A property | Its name: a property of the product for a product type, or of the position for a position type. |
| A number | As it is: 100, 0.5. |
Join them with +, -, * and /.
(VALUE_OU_1_TY - VALUE_OU_1_YA) / VALUE_OU_1_YA, not the same without the brackets. Do not rely on multiplying being done before adding.
Because a calculation says OU and not an outlet's name, the same calculated measure serves every planogram: each reads its own outlet. The sales codes are the ones table columns use, and Reports in Depth, Part 4 sets them out in full.
Where they are used
| In | A measure | A calculated measure |
|---|---|---|
| Highlights | Sales highlights colour positions by one sales figure. | View › Highlight › Calculated Measures, under its group. |
| Labels | A sales figure on each position's label. | Calc. and its code. |
| Reports | A column for a sales figure, by its code. | A column by its code, worked out on each row's total. |
| Movement | One measure is read as each product's movement: see Part 4. |
A report column that names a measure the document does not have is simply left out, with no message. So if a colleague's report looks short of a column in your document, compare the two documents' measures here first. Next: Part 4, Movement, Substitutions and Models.