Skip to content
News

What counts as an active customer? A data dictionary your AI can use

Finance reports three active customers in November. Product reports two. A five account example shows how to document the data and define both numbers so people and AI can use them.

Thin turquoise marks cross a satin metal sample in uneven bands.

The finance team says there were three active customers in November. The product dashboard says there were two. An AI assistant asked to write the monthly recap has both exports and a perfectly reasonable temptation to put one number in the report. Finance is counting paid accounts at the close of the month. Product is counting accounts that used a qualifying feature. Both figures belong in the recap once the reader knows what each one means.

A data dictionary explains how to interpret the fields in a dataset: what a row represents, where the values come from, what format to expect and which values can be missing. The USGS guide to data dictionaries also recommends recording relationships and business rules when they matter. Calculations like active customers need their own short metric definitions alongside the dictionary. Here is what the two teams could write together.

Five accounts, two different questions

This sample has one row per account as of the end of November. The team generated it for the example. Dates are in UTC. The activity column gives the last completed core action, with a blank for accounts that have no recorded completion. Ordinary sign ins are excluded when the export prepares that field.

AccountPlan at closeLast core action in November
APaidNov 23
BPaidNone recorded
CTrialNov 28
DInternalNov 12
EPaidNone recorded

Finance reports three paid accounts at close: A, B and E. Product reports two accounts with qualifying use in November: A and C. Account D performed a core action, but it is a test account. A useful answer can present both numbers, name the records behind them and explain why a trial account appears in one count.

Suppose the product team changes its definition to require two completions. The sample export cannot answer the new question because it contains the last event, not the number of events. The next analysis needs a different source. Recording the grain of the data helps a reviewer catch that limitation even when the assistant can produce a plausible calculation.

A small cobalt ceramic block sits beside a finely grooved metal die.

What the dictionary needs to say

For a small project, start with the fields that affect the answer. The descriptions should make sense to someone who has never seen the dashboard.

FieldWhat it representsImportant detail
account_idStable key for one accountUnique in this snapshot
plan_at_closePlan status at the close of NovemberPaid, Trial or Internal in this sample
last_core_action_atMost recent recorded core action within NovemberUTC. Empty means none was recorded in the source window

Put the source and owner above the table. In this example, the reporting team owns the account snapshot, and the product analytics team maintains the approved definition of a core action. Record which export version the dictionary describes and who to ask when the files change. A result from November should be traceable to the version that was valid then.

Missing values deserve their own sentence. If tracking stopped for an hour and no events arrived from a region, the empty field alone cannot tell you whether those accounts used the product. Record any known coverage gap with the snapshot. A reviewer can decide whether to exclude affected rows, qualify the figure or wait for the backfill. This is a good place to link to our guide on checking inputs before drawing a conclusion.

Put names on the metrics people actually ask for

In the glossary beside the dictionary, give each number a clear name and enough detail to reproduce it:

  • Paid accounts at month close. Count distinct accounts with status Paid in the snapshot taken at the end of the month in UTC. Use the billing export and name the reporting owner.

  • Accounts with qualifying monthly use. Count distinct Paid or Trial accounts in that snapshot with a recorded core action from the start of November up to the start of December in UTC. Exclude Internal accounts. Use the reporting snapshot and the versioned core action definition.

If someone asks for active customers without specifying a purpose, an agent can return the two definitions and ask which one fits. Give it the dictionary and the metric definitions with the file. A small request to try:

Calculate both November counts from this sample. Name the included account identifiers, say what the empty field means, and tell me whether the source can support a count based on two completed actions.

That reply gives a human something to check. The approved example can also become a case in a test dataset if the team relies on the analysis repeatedly.

Empty stone containers travel through an angular sorting line on a terrace.

Keep the meaning close to the data

In a Swarm Space, keep the reviewed dictionary, metric definitions and references to permitted exports together. Select the current definitions as context for a connected agent and ask it to name the version it used. When a metric changes, save the new definition with its effective date, link it to its predecessor and update the selected sources for future work. The old definition remains useful for reading earlier reports.

Narrow ravines divide pink and cream beds of dry marl.

The first dictionary does not need to describe the whole warehouse. Start with the fields behind one number that two teams use differently. Once those teams can explain the difference using the same page, they can give an agent a much better assignment.

Swarm | Data dictionary template for AI: An account reporting example