Data Design guide

Data Design keeps your enterprise bus matrix and the documentation of your dimensional model. This guide follows Kimball's order, which is the order of the editors: a business process, a fact with its grain and type, the dimensions it is keyed to and its measures, then the checks and the approval, the bus matrix, the documentation pages and the downloads.

Getting started

Sign up from the Data Design page and create your company; you become its administrator. Data Design appears in the sidebar next to Normly and the KPI Platform, and the module buttons at the top of the sidebar switch between them. Administrators have three buttons on the bus matrix: + Process, + Dimension and + Fact.

Want to see a finished design first? The demo opens Data Design with a small design for an insurance group: three business processes (Policy writing, Premium collection and Claim handling) and six facts, one of every type, with one fact left as a draft so that you can see what the check says about an incomplete one.

Data Design holds the description of your data model, not your data: nothing from your warehouse is loaded into it.

1. Business process

A business process is something the company does that produces measurements: writing a policy, paying a claim. Choose + Process, give it a name, say what happens and who owns it: a team member, or a name or role for someone without an account. Process names are unique in the company, whatever the capitals. A process is a row on the bus matrix as soon as you create it, saying no fact yet until a fact belongs to it.

2. Grain and type

Choose + Fact. The editor asks for the 1 · Business process first, then for the 2 · Grain: one sentence that says what exactly one row is, such as One row per claim payment line. Declare the grain before anything else about the fact. Then pick the fact table type; the editor shows what each one means:

  • Transaction: one row per event, at the moment it happened.
  • Periodic snapshot: one row per thing per period, the state at the end of each day, month or quarter. It needs its period: day, week, month, quarter or year.
  • Accumulating snapshot: one row per instance of a process, updated as it passes each milestone.
  • Factless: keys only. It records that something happened, or was covered, and counts rather than sums.

The name is stored in lower case with underscores, and the table is called fct_<name> unless you enter a table name. In Source you say in your own words where the rows come from.

3. Dimensions

A dimension describes the facts: customer, product, the calendar. Create one with + Dimension: a name (stored in lower case with underscores), what it describes, its business key (the source column, or columns separated by commas, that identify one member) and its attributes. Each attribute has an SCD type that says what happens when it changes, and a data type: text, whole number, decimal, date, date and time or true/false. Text is the default. The data type is the type of the column in the Power BI and T-SQL downloads.

  • Type 0 (fixed): kept as first recorded, never changes.
  • Type 1 (overwrite): overwritten, only the current value is kept.
  • Type 2 (history): a new row per change, so history is kept.

The surrogate key is generated from the name: customer gets customer_key. The standard date dimension, date, is there from the start: one calendar per company, always approved, and it cannot be renamed or deleted. A dimension that a fact is keyed to cannot be deleted either; the page tells you which facts use it.

Back in the fact editor, 3 · Dimensions keys the fact to the dimensions it is described by. Give a use a role when the fact uses one dimension more than once, such as the order date and the ship date on the calendar; a dimension used twice needs its own role for each use. Grain marks the dimensions that together make a row unique, Looked up from names the source column that holds the key, and Degenerate dimensions are identifiers kept on the fact itself, like an order number.

4. Measures

4 · Measures lists the numbers the fact carries. Each has a data type, a decimal unless you choose another (a whole number for something that counts), which becomes the type of its column in the Power BI and T-SQL downloads, and an additivity:

  • Additive: adds up across every dimension.
  • Semi-additive: adds across everything except time. It is a level, not a flow.
  • Non-additive: adds across nothing, so it is recomputed from its parts.

A factless fact carries no measures; every other type needs at least one.

Checks and approval

Facts and dimensions start as a draft. The Check panel beside the editor lists what is missing while you work.

  • An item marked missing blocks the approval: a fact without a process, a grain, a type, a dimension or (unless it is factless) a measure; a snapshot without its period or its date; a dimension without a business key.
  • An item marked note is a warning and blocks nothing, such as a dimension that no fact uses, or a transaction fact that is not keyed to the date dimension.

Save draft keeps whatever you have, complete or not. Approve saves only when nothing is missing; otherwise it says what is missing and stores nothing. An approved fact or dimension can be reopened with Reopen as draft.

Bus matrix

The Bus matrix page is read straight off the facts, so it cannot disagree with the design. The business processes are the rows, with their facts; the dimensions are the columns; a mark in a cell means the fact is keyed to that dimension, and a name in the cell is the role it plays there.

A dimension used by two or more processes is a candidate, marked with a hollow star. Once the company agrees it means the same thing in every process, it is conformed, marked with a star. The calendar comes first, then the dimensions most processes share, so the conformed ones sit on the left. The line above the matrix counts the business processes, facts and dimensions, how many dimensions are conformed, how many items are approved and how many still need something.

Conformed dimensions

A dimension is conformed when the company has agreed that it means the same in every process that uses it. The app cannot agree it for you: it reads the state from what the company declares. The bus matrix marks three states:

  • Conformed ★: agreed by the company.
  • Candidate ☆: used by two or more processes, not agreed yet. Nothing is stored for it; the matrix reads it off the facts. Candidates are the dimensions to discuss.
  • Local: used by one process, or by none. No mark.

Agreeing one. Only an approved dimension can be declared conformed. In its editor, under Conformance, write in the note what was agreed and with whom (up to 1,000 characters), then choose Declare conformed. The app records you as the one who agreed, with today's date, and shows the note in the Conformance panel of the editor. The calendar, date, is conformed by definition: it cannot be declared or withdrawn.

Withdrawing one. Withdraw removes the agreement after a confirmation. The dimension stays approved, and it is a candidate again while processes share it. Reopen as draft withdraws the agreement too, and the editor says so before you press it.

Conformed attributes. An attribute ticked Conformed is one the company agrees on as well. Its description is its definition, so a dimension with a conformed attribute that has no description cannot be approved until one is written.

Could be conformed. The editor of a dimension lists the attributes whose name also occurs elsewhere: in another dimension's attributes or business key, or in a non-key column of a scanned table you marked as a dimension. Tables marked as a fact or skipped are not compared, and technical names such as ids and keys are left out. The panel informs only and changes nothing, and attributes that are already conformed are not listed.

Rollups. A rollup is a smaller dimension of another one, Kimball's shrunken dimension: Month of Date is the calendar with its day-level attributes left out. Pick its base under Rollup of. A base cannot itself be a rollup, a rollup cannot have rollups, and the calendar is never a rollup. The business key and every attribute of a rollup must be conformed attributes of its base, so that the rollup agrees with it: the editor names those that are not, and the approval waits until they are. A base with rollups cannot be deleted. When every attribute name of a dimension is also an attribute of a larger dimension, the editor says it could be a rollup of that one.

A periodic snapshot is dated when it is keyed to the calendar or to a rollup of it. A monthly snapshot, with the period Month, keyed to Month of Date therefore passes the check that a snapshot is taken on a date.

Values from Normly. A conformed attribute can name the Normly table that holds its allowed values, in the attribute's Normly table column. The link points at the table's group, so it follows the latest version. It needs the Normly module, and only a conformed attribute can point at a table: the editor refuses one on any other attribute, and unticking Conformed clears it. The picker offers only the tables you may view. Someone who may not view a table sees that it is there, but not its name, in the editor and in the downloads. The design holds the link, never the values.

The context pack and the MCP tools give an AI the table's id, name, version and whether its values are shared: the table's Visible to AI (values) switch, see the context pack. They never carry a row. Rows reach an agent only through get_reference_table, and only for a table whose switch is on.

Documentation pages

Documentation, in the sidebar and in the switch next to the bus matrix, is the design written up:

  • a page per business process, with a star diagram of its facts and the dimensions they are keyed to, one line per key with its role on it;
  • a page per fact, with its grain, type, keys, measures and what is still missing;
  • a page per dimension, with its business key, its attributes and their SCD type, and the facts that use it.

All pages link to each other. They are generated from the design and never typed, so they cannot fall behind it.

Downloads: Markdown, Excel, Power BI and T-SQL

The buttons next to the switch download the whole design as one file, named after your company, such as acme-bus-matrix.md or acme-bus-matrix.xlsx.

  • The Markdown file holds the bus matrix as a table, a Mermaid diagram per business process (GitHub, GitLab and most wikis draw it in place) and a section per fact and per dimension. Keep it in a repository or a wiki next to the code it describes.
  • The Excel workbook has one sheet per part: Bus matrix, Facts, Fact keys, Measures, Dimensions and Attributes.
  • Power BI downloads a zip with a Power BI project (PBIP), such as acme-powerbi-project.zip. Unzip it and open the .pbip file in Power BI Desktop, or sync its .SemanticModel folder to Fabric. The semantic model is written in TMDL: a table per dimension and fact with typed, described columns, the relationships between them, the calendar as the date table and a DAX measure for each measure of a fact. Where a fact uses a dimension more than once, such as an order date and a ship date, the first use in the grain is the active relationship and the others are inactive. Each table reads the warehouse table the design names; point the two parameters Server and Database at your warehouse and refresh. The README in the zip walks through it.
  • T-SQL opens a menu: Fabric Warehouse or SQL Server. You get a script, such as acme-star.sql, that creates the empty tables of the approved dimensions and facts, with their columns, data types and keys. The two scripts differ where the two systems do: Fabric takes its keys as not enforced, for instance.

The Power BI project and the T-SQL script hold the approved dimensions and facts. A draft is left out and named in the README and in the header of the script, so approve what you want in the model first. The columns get their type from the data type of each attribute and measure; the Markdown file and the workbook list it too.

The headings in all four files are in English, whatever language you use the app in, so that the file reads the same wherever it ends up. The names and descriptions are yours and stay as you typed them.

Roles

Everyone in a company with Data Design can read the design: the bus matrix, the documentation pages and the downloads. Company administrators, and Matso staff, create, change and delete business processes, facts and dimensions. There are no roles per table here; see Roles & permissions for the rest of the platform.

With the KPI Platform and Normly

Data Design shares the workspace of the KPI Platform and Normly: one login, and the module buttons at the top of the sidebar switch between them. It is a module of its own: a fact or a dimension is not linked to a KPI or a Normly table.