Skip to content

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.

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.

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.

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.

This list pairs the retail sample’s twelve store names with their store numbers, for a store list that numbers its stores.

store,store_no
Store 01 Northfield,1
Store 02 Kirkby Moor,2
Store 03 Harrow Point,3
Store 04 Southgate,4
Store 05 Bayside,5
Store 06 Ferrylands,6
Store 07 Eastmere,7
Store 08 Lowfen,8
Store 09 Marshwick,9
Store 10 Westbrook,10
Store 11 Cliffside,11
Store 12 Ridgeway,12

This list pairs the same twelve store numbers with the site codes another table uses, 001 to 023 in odd numbers.

store_no,site
1,001
2,003
3,005
4,007
5,009
6,011
7,013
8,015
9,017
10,019
11,021
12,023