Property Code
The Property Code says what the column shows. It is one of these.
| The column shows | Write | Example |
|---|---|---|
| A property of the row | The property's name. | Name, UPC, PositionsCount |
| A property of what the row belongs to | On a position's row, Product., Fitting. or Planogram. before the name. On a fitting, bay or point of sale row, Planogram. | Product.NamePlanogram.Name |
| Sales | A sales code: see below. | VALUE_OU_1_TY |
| A calculated measure | Its code, with Aggregation Calculate. | cVALUEGROU1 |
| A classification | Its heading in curly brackets, or its number in square brackets, counting from 0. [#] gives a column for every classification. | {Brand}, [2] |
| A product's figure on planograms | A name starting Planogram_. | Planogram_SelectedLinearSpacePlanogram_LinearSpace |
| A calculation on other columns | CALC: and a script: see Calculations. |
The Planogram_ figures come in two families:
- With Selected in the name, for the selected planogram:
Planogram_SelectedListings,Planogram_SelectedPositions,Planogram_SelectedFacings,Planogram_SelectedLinearSpace,Planogram_SelectedAreaSpace,Planogram_SelectedCubicSpace. - Without, for the filtered planograms together, or for each planogram where the columns repeat:
Planogram_Listed,Planogram_Listings,Planogram_Positions,Planogram_Facings,Planogram_LinearSpace,Planogram_AreaSpace,Planogram_CubicSpace.
The surest way to find a code is to look at a column that already shows what you want: right-click its header and choose Edit. Codes must be spelt exactly, capitals included.
Sales codes
A sales code has four parts, joined by underscores.
| Part | Write | For |
|---|---|---|
| Measure | The measure's code | One of the document's measures. To find a code, look at a sales column that already shows the measure, or ask Spanner AI for the list. |
| Outlet | OU | The selected planogram's outlet. |
CH | The selected planogram's channel. | |
| An outlet's name | That outlet, whatever is selected. | |
pOU, pCH | Each planogram's own outlet or channel, in a table whose columns repeat for each planogram. | |
# | Each outlet in turn, in a table whose columns repeat for each outlet. | |
| Period | 1, 2 | The document's first and second periods. |
| Year | TY, YA | The latest year, and the year before. |
On a position's row, write Product. before the code: Product.VALUE_OU_1_TY. Give a sales column the measure's code as its Number Format, and it is written the way that measure is everywhere else in Spanner.
Cell Type
The Cell Type adds a bar, a colour or a symbol to the number.
| None | The number or text alone. |
| Indicator Bar | A bar from the left, behind the number. Its length is the value against the column's maximum. |
| Reverse Bar | The same bar, from the right. |
| + / - | A bar from the middle: right for a positive value, left for a negative one, each in its own colour. |
| Background Scale | The cell is shaded between two colours, from zero to the maximum. |
| Background Scale - » + | The same, from minus the maximum to plus it. For growth and change. |
| Tick / Cross, On / Off | For a yes or no value. |
| Drop Down | For a column that is edited by picking from a list. It needs an Edit Command. |
Number Style and Format
Number Style chooses what is written in the cell.
| Value | The figure. |
| % of Total | The figure as a share of the column's total. Use it with the Number Format P1. |
| None | Nothing: the bar or colour alone. |
Number Format chooses how it is written.
| Number Format | 12345.678 is shown as | Use for |
|---|---|---|
0 | 12346 | The default. |
N0, N1, N2 | 12,346 12,345.7 12,345.68 | Numbers, with commas and that many decimal places. |
P1 | 0.125 as 12.5% | Shares and growth. |
+0.0;-0.0;0.0 | +12345.7 | A change, with its sign. |
| A measure's code | As that measure is set to show | Sales. |
Linear, Dim | In your units of length | Widths, heights, depths and linear space. |
Area, Cubic | In your units of area or volume | Area and volume. |
Colour | The cell painted in the colour | A column that holds a colour. |
upper, lower, proper | Text in capitals, small letters or With Initial Capitals. |
Hiding zeros
A table with many empty combinations, such as a matrix of two classifications, is easier to read when a zero is left blank. There is no setting for this: it is done with the Number Format. A format made of # writes nothing for zero. A format in three parts, separated by semicolons, is used for positive figures, negative figures and zero in turn, so a # as its third part hides the zeros.
| Number Format | Shows | Use for |
|---|---|---|
#,# | 12 1,234 and nothing for 0 | Counts and other whole numbers. |
0.0%;-0.0%;# | 12.5% -3.0% and nothing for 0 | Shares and growth. |
¤#,##0;-¤#,##0;# | £1,235 -£40 and nothing for 0 | Sales value. Spanner writes your currency symbol in place of ¤. |
#,#also leaves blank a figure that rounds to zero, such as 0.3.- A sales column whose Number Format is the measure's code is written as the measure is set to show. To hide its zeros, put a format like the last one in place of the code.
- The cell keeps its background colour. Only the figure is hidden.
Scale by multiplies the figure before it is shown: 0.001 shows thousands.
Aggregation
Where a row stands for several things, as a brand stands for its products, Aggregation says how their figures become one.
| Sum | Added together. For text, every value is listed. |
| Count | How many have a value: not empty, not zero, not "no". Count a yes or no column to count the yeses. |
| Minimum, Maximum | The smallest and the largest. |
| First, Last | One value from the group. Use it for text that is the same for all of them. |
| Calculate | For a calculated measure. The calculation is done on the group's totals, so growth is the group's growth, not the sum of its products' growth. |
Minimum / Maximum
This sets what a full bar, or the strongest colour, stands for.
| Auto | The largest value in the column. The biggest row has a full bar. |
| Sum | The column's total. Each bar is then the row's share, and the bars add up to one full bar. |
| A number | That value. For growth, 0.1 gives the strongest colour at 10% and beyond. |
Colours
A column has six colours: background, text and bar, each for positive and negative values. On screen they are labelled Background, Foreground and Indicator. In a background scale, the two background colours are the two ends of the scale. With Hue Scale ticked the shading passes through the colours between them, as from red through yellow to green; without, it fades straight from one to the other.
Give the columns of one measure the same pale background, so the eye groups them. The standard tables use these:
| Columns of | Background | Text | Bar |
|---|---|---|---|
| Sales value | #FFFFFFD0 | #FF402000 | #FFDFC2AB |
| Lines | #FFE0FFF0 | #FF000040 | #FFD0C0FF |
| Positions | Honeydew | #FF202000 | #FFC0FFC0 |
| Facings | #FFF3FBD4 | #FF201000 | #FFDCEF93 |
| Linear space | #FFFAF0D4 | #FF201000 | #FFF0D0A0 |
| Area | #FFFFE8E8 | #FF301010 | #FFF0C0C0 |
| Growth, as a scale | #FF80FF40 at the top | #FF004000 | #FFFF8080 at the bottom |
Column Headers
A column has one header for each of the table's header lines. Write the parts that change from document to document as codes, and Spanner fills them in. The same table then reads correctly for any outlet or period.
| Write | Shown as |
|---|---|
<OUTLET>, <CHANNEL> | The selected planogram's outlet and channel. |
<TIME1>, <TIME2> | The document's periods, as "52 Weeks". |
<VALUE> and other measure codes | The measure's short description. |
<SELECTEDPLANOGRAM>, <COMPARISONPLAN> | The selected planogram's name, and the comparison planogram's. |
<COMPAREFROM>, <COMPARETO> | The two statuses of a comparison table. |
<ROWVIEW>, <COLUMNVIEW> | The classifications chosen by the row view and the column view. |
<PLANOGRAM_NAME> | Where the columns repeat by planogram: each planogram, or each group of planograms. |
<COLUMNVALUE> | Where the columns repeat by a second classification: each of its values. |
[Latest], [Linear] [Space] | A word in square brackets is shown in the language Spanner is running in. |
Leave a space before a single character at the end of a header: write <VALUE> %.
Filters
A table's filters are part of the table, not of a column.
| Product Filter | The table shows only the products the document's product filter lets through. |
| Planogram Filter | Only the filtered planograms are listed or counted. |
| Selected Planogram | Only what is on the selected planogram. |
| Parent Table | The table is a lower table: it shows what belongs to the rows selected in the table above, and is left out of the Table list. |
| A test you type | A property of the row, a comparison and a value, such as PositionsCount>0: only rows that pass are shown. The comparisons are =, !=, >, >=, < and <=. |
Edit Command and Custom Command
Edit Command makes a column editable. Leave it empty for a column that is only read.
Edit | The cell can be typed into. For most properties, and for sales. |
Spread | For sales on a grouped row: the group's products are scaled to your figure. See Part 2. |
A command starting Set | For properties that need more than a typed value, such as a position's orientation. Copy it from the standard table that edits the same property. |
Custom Command holds extras, separated by semicolons.
#0, #1 ... | A label, so a calculation can read this column. Use each number once in a table. |
hide0 | Leaves the column out while every product's value is zero. For measures that only some documents have data for. |
Total | In a table that crosses two classifications: the column is a row total, shown once. |
Swap{Listings.Facings.LinearSpace} | Adds Change ... to to the column's menu. The name in the list that is part of the Property Code can be switched for any of the others: Planogram_LinearSpace becomes Planogram_Facings. |
Export:=... | Writes that formula in the column when the table is exported to Excel. |
Calculations
Most figures need no calculation of yours: a share is the Number Style % of Total, and growth is a calculated measure. A CALC: column is for a figure made from other columns of the same row, such as the index of a share of space against a share of sales.
The script is a list of steps separated by semicolons. Each step has its parts separated by colons.
| Step | Does |
|---|---|
GET:#0:A | Puts this row's value from the column labelled #0 into A. A to Z are yours to use. |
GETTOT:#0:B | Puts that column's total into B. |
I2D:C, L2D:C | Makes a whole number, or a length, ready for arithmetic. Counts such as lines and facings need I2D; linear space needs L2D. |
DBL:C | Starts the sum with C. |
DBLADD:D, DBLSUB:D, DBLMUL:D, DBLDIV:D | Adds D, takes it away, multiplies by it, divides by it. |
DBLVAL:7:C | Puts the number 7 into C. |
RETURN:DBL | Ends the script. The sum so far is the cell's value. |
The index of space share against sales share. Label the sales column #0 and the linear space column #1, by putting those in their Custom Commands. Then the index column's Property Code is:
CALC:GET:#0:A;GETTOT:#0:B;GET:#1:C;GETTOT:#1:D;L2D:C;L2D:D;DBL:C;DBLDIV:D;DBLMUL:B;DBLDIV:A;RETURN:DBLRead it as: the row's space, divided by all the space, multiplied by all the sales, divided by the row's sales.
- Read columns by label, not by letter. Older tables read a column by its letter, as
GET:D:A. That goes wrong when a column is added, moved or left out. A label stays with its column. - A total needs a bar.
GETTOTonly has a total where the column it reads has a bar or scale Cell Type, or the Number Style % of Total. - Calculations are for tables with one set of columns. They do not suit tables whose columns repeat.
Next: Part 5, Sharing Tables.