Dates, numbers and codes
By the end of this page you will have set the type and the name of each column so that BInbox reads it as the date, a dimension or a measure, as you intend.
BInbox reads a column’s role from its type in the warehouse and, for text and numbers, from its name, before it reads a row. Pick a table lists the roles. The rules below follow from it.
The date
Section titled “The date”The first column typed as a date or a timestamp is the date the report reads. A date written as text, or as a number such as 20261120, is not a date to BInbox: text is a dimension and a number is a measure. The table then has no date, and it opens on the Data view instead of the Dashboard, because the Dashboard needs a date.
When a table has several date columns, such as the order date, the ship date and the invoice date, put the one the report should follow first. Another date column is still there, and a card can use it from the field pane.
Numbers
Section titled “Numbers”A column the warehouse types as a number is a measure and is added up. A column typed as text is never added up, even when every value looks like a number. The profile flags such a column as To look at, so you see it, but the fix is in the warehouse.
Keep money in one currency in a column, and say which in the column’s name, such as revenue_usd, because a column
that mixes currencies adds them up as one. You can change how a measure is shown in the Data view.
Codes and ids
Section titled “Codes and ids”A code is a number with no amount in it, such as a store number, a ZIP code or a product SKU. The warehouse may type it as a number, and BInbox then has only its name to tell it apart from an amount.
A numeric column whose name ends in id, key, code, cd, sku, no, num or number is not added up. Its
different values are counted when the name also holds order, invoice, basket, receipt, transaction, ticket or booking,
and the column is left out otherwise. A name that gives no hint is read as an amount.
A text code keeps its leading zeros. A code you want to split by is a dimension only when it is text.
Free text and other types
Section titled “Free text and other types”A text column whose name holds descr, memo, narrative, detail, note, comment or remark is read as free text and left out, because a dimension with a different value on every row cannot be split by. Columns named lat, lng, lon, latitude, longitude, x or y are read as map coordinates and left out. A column typed as bytes, JSON or a structure is left out too.
When a JSON column holds a value people split by, such as a channel or a plan, pull it out in the view into a column of its own, typed as text.
Missing values
Section titled “Missing values”BInbox treats a missing value as null and never as zero. A stand-in the warehouse writes in place of null is an ordinary value to BInbox, so it is added up and drawn.
A zero is right when zero is what happened, such as a store that sold nothing in a month that it was open. A zero is wrong when it means “no one counted”.
Names people read
Section titled “Names people read”The column names appear in the field pane and on the cards, so name them for the people who read the report. region
and store_format are better than rgn_cd_3 and fmt. Keep a column’s name the same from one load to the next,
because a setup refers to its columns by name.