Match list
A match list is a CSV list of two columns that pairs the values two tables write differently. One table may name its stores and the other number them, or two tables may number the same counties in two systems, such as a state’s county numbers 1 to 83 and the federal county codes 001 to 165. Each row pairs one value of the first table with the same thing as the second table writes it. The list is kept with the data’s setup, like a grouping file, so the next file is matched the same way without asking again.
A match list is used when a table sits beside the data’s own table at a level the two share, such as a store list with
each store’s floor area beside sales by store. It is kept in the setup file, as match
on the shared level in beside. You give BInbox the list in Add a table, as a file or pasted in, on the table’s match report.
Columns
Section titled “Columns”The file is a CSV file (.csv, .tsv or .txt) with the column names on its first line. The separator, the
encoding and the quotes are read as in a data file. Blank lines are skipped, and spaces
around a value are trimmed.
| Column | What it holds |
|---|---|
| One table’s value | The value as one table writes it, such as Store 01 Northfield. |
| The other table’s value | The same thing as the other table writes it, such as 1. |
The columns can be in either order and have any names. Each value is on one row at most in its column, so no value stands for two.
How values match
Section titled “How values match”BInbox finds which column is which by the values. It places the list on the pair of levels, one in each table, whose values its rows pair the most of, and it tries the columns both ways round. A list whose rows pair no value of either table is placed nowhere.
Without a list, two values match when they are the same once spaces at the ends and upper and lower case are set
aside, so Store 07 Eastmere matches store 07 EASTMERE. Nothing looser is matched. A near spelling, such as
St Clair and St. Clair, stays unmatched until a person confirms the pair, and a confirmed pair is added to the
match list. A value that one table writes twice in two ways, such as Alcona and ALCONA, is left unmatched rather
than guessed.
The list comes first, and the values that match without it come after. Two tables share a level when at least half of the smaller level’s values match. For each level the two tables share, BInbox counts the values in each table, how many matched and how many of those through the list, and it names the values with no match on each side, up to 500 a side.
A figure from both tables, such as revenue per square foot, is worked out for a value with a match. A value with no
match shows Not available for this data: Store 04 Southgate is not in the store list. Each table is still added up
on its own, so a region’s floor area counts every store in the store list, matched or not.
Messages
Section titled “Messages”| Message | When |
|---|---|
A match list has two columns, one for each table's value, and this file has {n}. |
The file does not have exactly two columns. Nothing is kept. |
The file has no pairs under its column names. |
The file has a header line and no rows. |
Row {n} has a blank value. Each row pairs a value of each table. |
A row leaves one of its two values blank. |
{value} is on more than one row. A value is matched once, so it is on one row only. |
A value is in its column twice, the same once case is set aside. |
A match list holds 25,000 pairs at most, and this one has {n}. |
The list has more rows than a shared level has values. |
Example: a name and a number
Section titled “Example: a name and a number”This list pairs the retail sample’s twelve store names with their store numbers, for a store list that numbers its stores.
store,store_noStore 01 Northfield,1Store 02 Kirkby Moor,2Store 03 Harrow Point,3Store 04 Southgate,4Store 05 Bayside,5Store 06 Ferrylands,6Store 07 Eastmere,7Store 08 Lowfen,8Store 09 Marshwick,9Store 10 Westbrook,10Store 11 Cliffside,11Store 12 Ridgeway,12Example: two numbering systems
Section titled “Example: two numbering systems”This list pairs the same twelve store numbers with the site codes another table uses, 001 to 023 in odd numbers.
store_no,site1,0012,0033,0054,0075,0096,0117,0138,0159,01710,01911,02112,023