Preparing Your Data
How you shape your data before it reaches Engeene decides how honest every chart built on it can be. This article collects the habits that make a model easy to use and hard to misread — they hold for any analytics tool, and every demo model follows them, so you can open one and see each rule at work.
The rules at a glance
| Rule | Do | Do not |
|---|---|---|
| Identify people by an internal id | customerId from your own system |
Names, e-mail addresses, phone numbers, government or tax identifiers |
| Leave a missing value empty | An empty cell | 0, -1, N/A, Unknown, None, 1970-01-01 |
| Name a yes or no value by what it means | EU Member / Not EU Member, On Time / Late |
true / false, 1 / 0, Y / N |
| One kind of record per dataset | One row per booking, with a booking Id | A dataset mixing bookings and refunds, or a row per booking and per tag |
| Organise datasets as a star | Events that reference the things they describe | One wide table repeating every customer column on every order |
| Use a multi-value attribute for tags | tags = Beach|Family |
tag1, tag2, tag3 columns, or one row per tag |
| Use published codes | CZ, EUR, PRG |
Czechia, Kč, Prague airport |
| Give every number one meaning | One unit per column, the currency beside a money amount | Euros and dollars added up in one column |
| Describe what you load | A sentence per dataset and per property | Columns only their author understands |
Identify people by an internal id
A person is a customer number, an account id or a CRM record id — the key your own systems already use. Analytics needs to tell people apart and to count them, and an id does both. It never needs to know who they are.
- Leave personal data out. Names, e-mail addresses, phone numbers, street addresses and photos add nothing a chart can use: a column that is different on every row is useless as a segment, and it puts personal data in every export, every emailed report and every screenshot.
- Never use a government identifier as the key. National identity numbers, passport numbers, tax numbers and social security numbers are personal data in their own right, often regulated, and they leak when a key is shown — and a key is shown in every list and every link.
- Keep the link to the person in your own system. When someone must follow up on a customer, they look the id up where the person's details already live. Engeene never needs that table.
- Coarsen what describes a person. An age band (
25-34) instead of a birth date, a city or region instead of a street address. Together, a birth date, a postal code and a gender identify most people; bands and regions identify nobody. - Hide what must stay. When a column that identifies someone has to be in the model — an operator's name on a coaching dashboard — let roles hide it: a protected attribute is masked or replaced for everyone whose role should not read it.
In the demo data: a traveller, a shopper, a viewer and a contact-centre customer are each an id — a CRM contact id, a store customer number, an account UUID — with no name and no e-mail address beside it. The contact centre's operators keep their display names, because they are the centre's own staff and a coaching dashboard is about them by name; their key is still the internal id.
Leave a missing value empty
When a value does not exist — the customer gave no rating, the order came with no campaign, the subscription has not been cancelled — leave the cell empty. An empty cell is the only empty value Engeene reads (how values are read).
Every placeholder that stands in for "nothing" is read as a value, and quietly changes the answer:
| Placeholder | What goes wrong |
|---|---|
0 for "no rating" |
The average rating of a business where nine customers in ten never answered reads about 0.6 instead of 4 |
-1 or 999 for "unknown" |
Minimum, maximum and every total are wrong, and a range filter has to know the trick |
N/A, Unknown, None |
Each becomes a category of its own, next to the real ones, and is counted as a distinct value |
1970-01-01 or 9999-12-31 for "no date" |
A chart by month grows a bar in 1970; a duration runs for decades |
An empty value behaves the way a reader expects:
- A measure — Sum, Average, Minimum and the rest leave it out, so an average over a sparse column is the average of the rows that have a value, with no filter. To show how many rows have one, count them beside it: the Highlight card's second slot is the natural place.
- An attribute or a reference — every row without a value lands in one empty segment, drawn as a dash, and a Count of the property leaves it out: 300 agencies with direct bookings beside them count as 300, not 301. A property reached through an empty reference is empty too, never Unknown. Give it words with the property's Empty Value Label — Booked direct, Not a member, No campaign — and the data stays empty underneath.
- A filter — the no-value entry, first in the value list under the same dash or label, keeps or drops those rows on purpose (Filters).
A real zero stays a zero. A booking with no discount has a discount of 0 — that is a measured amount. A booking nobody rated has no rating. Ask "did we measure it and get nothing, or did we not measure it?": the first is 0, the second is empty. The same holds for not applicable: a scorecard question that does not apply to a call earns neither points nor a fail, so its score is empty, not 0.
In the demo data: the travel rating, the streaming star rating and the contact-centre survey score are empty when nobody answered, and their averages need no filter. The retail loyalty tier is empty for a customer outside the programme, the contact-centre campaign and case type are empty when there was none, a scorecard question marked Not applicable has empty scores, a movie has no number of seasons, and a subscription that is still running has no cancellation date. References that may be missing — the agency of a direct booking, the cooperative of an independent farm — are empty too, each with an Empty Value Label naming what the empty value means.
Name a yes or no value by what it means
A column that answers a yes/no question — is the country in the EU, did the delivery arrive on time, was a promotion applied — is an attribute, and an attribute's value is read on its own: in a filter chip, a legend, a table cell or a value list, usually without its property name beside it. true, 1 or Yes says nothing there; a legend reading true and false leaves the reader to work out which question was asked.
- Write the answer, not the boolean.
EU Member/Not EU Member,On Time/Late,Organic/Conventional,Active/Inactive— each value still makes sense alone. - Use
Yes/Noonly when nothing more specific fits, for example the answer to a question that is itself the row, such as a scorecard question. - Keep a count a number. When you want to add something up — likes, conversions — load
1/0as a measure and sum it; that is a measure, not a yes/no attribute. - Leave "we do not know" empty, not a third word — see Leave a missing value empty.
In the demo data: a farm is Organic or Conventional, a delivery On Time or Late, a sale at Full Price or under a Promotion, and a scorecard either has a Second Opinion or a Single Author. The global datasets follow the same rule: a country is an EU Member or Not EU Member, a language is written Right-to-Left or Left-to-Right, and an airline is Active or Inactive. The streaming liked column stays 1 / 0 because it is a measure you sum.
One kind of record per dataset
Decide what one row is — one booking, one flight segment, one survey answer — and keep every row of the dataset that kind of thing. Each row is one individual item, its Id names it, and every number on a card is a sum or a count over those items.
- Give every dataset an Id that is unique per row. Counting rows is a Count of that Id, and a reference can only point at a dataset that has one.
- Do not mix kinds. Refunds next to bookings, or a monthly total next to the daily rows it sums, make every total count something twice.
- Do not repeat a row to hold a list. A booking copied once per tag adds its revenue up once per tag. Use a multi-value attribute instead.
In the demo data: every transactional dataset carries an Id — a booking number, a flight segment UUID, a hotel confirmation code — and its description says what one row is: "one row per segment, not per itinerary, so a return trip is two rows."
Organise datasets as a star
Split your data into events — what happened, with the numbers you total (orders, bookings, views, conversations) — and the things the events are about — who and what (customers, products, agencies). Each event row holds a reference to each thing it is about. Drawn out, the events sit in the middle with the things around them, which is why this shape is called a star schema.
- References point from many to one — from the order to its customer, never from the customer to a list of orders. A card based on the events dataset then reaches every attribute around it in one click; see Cross-Dataset Analysis.
- Keep a thing's attributes on the thing. A customer's country lives once, on the customer — not copied onto every order, where an old order and a new one can disagree.
- A chain is fine where the business is a chain. A customer can belong to a company, a field to a farm and a farm to a cooperative. Engeene follows references several steps deep, so you never flatten a hierarchy into one table to make a chart work.
- Measures belong to events, attributes to things. A number that only makes sense per order belongs on the order.
In the demo data: travel bookings reference their customer and agency, and customers and agencies reference a company; retail orders reference their customer and campaign; streaming views reference the viewer and the title. The food chain is the deliberate exception — one long chain from a sale back to the cooperative that grew the crop — because tracing a sale ten steps back is exactly what it is for.
Use a multi-value attribute for tags
When one record carries several values of the same kind — the tags on a booking, the interests of a customer, the languages a site serves — store them in one Set of Attributes property. In a CSV file the values share one cell, separated by |: Beach|Family.
- Not one column per value (
tag1,tag2,tag3): nobody can ask "which bookings are tagged Family" without checking three columns, and the fourth tag has nowhere to go. - Not one row per value: the record's numbers are added up once per tag, so the totals grow with the number of tags.
- Not a comma-separated text attribute: every combination becomes a category of its own, and Beach, Family and Family, Beach are two of them.
A Set of Attributes segments one record into every value it holds, while every total still counts the record once, and a filter can ask for any or all of the picked values. See Property Types.
In the demo data: travel booking tags and customer interests, the contact-centre operators' skills, and the languages a Global Data Atlas site serves are each a Set of Attributes.
Use published codes
Store a country as its ISO 3166-1 code (CZ), a currency as ISO 4217 (EUR), a language as ISO 639 (ces) and an airport as its IATA code (PRG) — the code, not the name. A code is spelled one way everywhere, it joins your data to the built-in Global Datasets for the names, flags and maps, and a name in your language never has to match a name in someone else's. Codes and Standards lists the spelling of each.
In the demo data: every country, currency, airline, airport and language code is real and shared with the Global Datasets, which is why the maps draw and why clicking a code opens a page about it.
Give every number one meaning
- One unit per column. A duration in seconds stays in seconds on every row; set the property's unit so every card says so.
- Money in one currency per column, or the currency beside it. When amounts come in several currencies, keep each row's currency in an attribute next to the amount, and total within a currency — a Sum across currencies adds numbers that are not comparable.
- A percentage one way. Store
12.5for 12.5 % or0.125, and say which in the description. - Plain numbers. No thousands separators, no currency symbols, no text in a measure column.
- A code is an attribute, even when it is made of digits. A postal code, a product number or an account number is something to group by, not to total — make it an Attribute.
- Times as a time. ISO 8601 (
2025-03-01T10:15:00Z) or epoch milliseconds, ideally in UTC.
In the demo data: a money measure with one currency says so in its unit, the travel booking amounts keep their currency in a currency attribute on the same row, and shares that are already 0-100 — completion, waste, moisture — say so in their descriptions.
Describe what you load
Give each dataset and each property a sentence: what one row is, what the value means, its unit, and what an empty value means. The description appears wherever the property is offered, and Ask AI reads it to pick the right column. A property nobody can explain is a property nobody can trust.
In the demo data: every dataset and every property carries a description — open any demo model article to read them, with five example records under each dataset.
See also
- Data Models and Property Types
- Create a Model and Loading Data
- Loading Best Practices — the exact formats a file may use, and how to load
- Roles — hide a column from the roles that should not read it