MSBA-250 · Lesson 1 of 12 · 26 min

Designing a data model

▶ Video coming soon A video version of this lesson is on the way.

The facilities department at Lumenvale Community Colleges inspects every building on its three campuses at least twice a year. Fire extinguishers, eyewash stations, lab fume hoods, emergency lighting, roof drains: each has a checklist, and until this autumn each checklist lived in a different spreadsheet. Octavia Brenner-Lau, the facilities operations manager, brought a printout of one of them to the first design session. It had 41 columns. Column A was the building, column B the room, columns C to AF were checklist items with "OK", "Fail" or nothing, and the last few columns held the inspector's initials, a date, and a free-text note that sometimes ran to three paragraphs.

"Every term someone adds a column," Octavia said. "Every term the formulas break. And when the fire marshal asks how many failed extinguishers we had on the Boise campus last year, it takes Kwabena two days to answer." Kwabena Asante-Lowe, the college's data analyst, nodded; he had built the report twice. Signe Tavernier-Mbeki, the developer who looks after Lumenvale's Dataverse environments, did not open Power Apps. She went to the whiteboard and wrote three words: things, facts, links. "Before we build anything," she said, "we work out what this data actually is."

This course is about that work. It teaches you to design Microsoft Dataverse tables, columns and relationships, to add calculations and validation, and to protect the data with Dataverse's security model. It supports the data modeling and security objectives of Exam AB-410, Building Intelligent Applications, and it is the foundation for every Power Apps, Power Automate and Copilot Studio solution you will build later in the program. This first lesson is about design: how to turn a business process into a data model before you click New table.

What a data model is

A data model is a description of the information a solution stores and how the pieces relate. In Dataverse it is made of tables (things such as Building, Room and Inspection), columns that describe each row of a table (the room number, the inspection date), and relationships that connect rows in different tables (this inspection happened in this room). Around that core, Dataverse adds the parts a business application needs: business rules, calculated values, security, auditing and the forms and views people use to see the data.

A good model makes everything built on it easier. Apps need fewer formulas, reports are simple, security is clear, and AI features such as Copilot answer questions correctly because the data has meaning. A poor model makes every later step harder. The 41-column spreadsheet is a typical example: it mixes facts about buildings, rooms, inspections and individual checklist results in one row, so the same building name is typed hundreds of times, a new checklist item means a new column, and "how many failed extinguishers" means scanning text across dozens of columns.

On the left, a wide spreadsheet row with Building, Room, 30 checklist columns, Inspector and Notes. Arrows lead to four separate tables on the right: Building, Room, Inspection and Finding, connected by lines.
One wide row becomes several narrow tables, each describing one kind of thing.

Why Dataverse instead of a list or a spreadsheet

Lumenvale could have moved the checklist into a SharePoint list or a bigger spreadsheet. Signe's reason for Dataverse was not size but structure. Dataverse is a relational, secured data platform: it enforces data types, supports true relationships between tables with rules for what happens when a parent row is deleted, applies role-based security down to individual columns, records changes in an audit log, and runs business logic on the server so it applies whether data arrives through an app, a flow, an import or an agent. Those are the features this course teaches. Spreadsheets and lists remain good tools for simple, single-table data; when the data has several related kinds of thing, several audiences and real security needs, a relational model earns its keep.

Why the facilities data moved to Dataverse.
NeedSpreadsheet or simple listDataverse
Several related kinds of dataRepeated text or lookups by handTables joined by relationships
Consistent valuesFree typing; validation is optionalData types, choices, required columns and business rules
Who can see whatWhole file or whole listSecurity roles, business units, teams and column security
History of changesVersion history of the fileAuditing of rows and columns
Logic that always runsFormulas in one fileServer-side rules, calculations and plug-ins
AI and reportingAmbiguous headingsNamed tables and columns with descriptions that Copilot and reports can use

Start from the process, not the screen

The temptation in a low-code tool is to start with the app: drag a form onto the screen and create columns as you need them. Signe asks makers to resist it for one meeting. Screens change every term; the underlying facts change slowly. If the model reflects the real process, new screens are cheap. So the first step is to describe the process in plain sentences, with the people who do it.

Octavia described the inspection process: "An inspector is assigned a building and a date. They walk the building room by room. In each room they check the items on the template for that kind of room: a lab has a fume hood and an eyewash station, an office has none. Every item passes or fails. A failure gets a note, maybe a photo, and a priority. Failures create work orders for the trades crew. When every failure in the inspection is fixed, the inspection is closed." Signe wrote each sentence on the board and underlined the nouns.

A simple technique turns those sentences into a first draft of the model. Nouns that the business tracks over time become candidate tables. Descriptive words and quantities about those nouns become candidate columns. Verbs that connect two nouns become candidate relationships. Some nouns turn out to be columns rather than tables, and some verbs are really events that deserve their own table, but the technique gets a room full of people to a shared picture quickly.

From process sentences to model ideas.
Sentence from the processWhat it suggests
An inspector is assigned a building and a date.Tables: Inspection, Building. The inspector is a user. Columns: scheduled date.
They walk the building room by room.Table: Room. Relationship: a building has many rooms.
Each kind of room has a template of items.Tables: Room Type, Checklist Item. Relationship: a room type has many items.
Every item passes or fails.Table: Finding, one row per item checked. Column: result as a choice.
A failure gets a note, a photo and a priority.Columns on Finding: note, image, priority choice.
Failures create work orders.Relationship: a finding can have a work order, which may live in another system.
When every failure is fixed, the inspection is closed.A calculated status or rollup on Inspection.

Entities, attributes and relationships

Data modeling has its own vocabulary, older than Dataverse. An entity is a kind of thing the business tracks; in Dataverse an entity is a table, and older documentation and the Web API still say entity. An attribute is a property of the thing; in Dataverse an attribute is a column. An instance of the thing, one particular building, is a row, which older documentation calls a record. A relationship describes how rows of two tables are associated. You will meet both sets of words in Microsoft Learn, in Power Automate actions and in code, so it helps to know they mean the same thing.

Relationships have a cardinality, the number of rows on each side. One building has many rooms, and each room belongs to exactly one building: that is one-to-many from Building to Room. One inspection has many findings: one-to-many again. A checklist item can appear on many room types, and a room type has many checklist items: that is many-to-many. True one-to-one relationships are rare in business data; when you think you have one, check whether the two tables are really one table, or whether one side is optional extra detail that only some rows need.

An entity relationship diagram. Building connects one-to-many to Room. Room Type connects one-to-many to Room and many-to-many to Checklist Item. Inspection connects many-to-one to Building and one-to-many to Finding. Finding connects many-to-one to Room and to Checklist Item.
The first draft of the field inspection model. Lesson 3 adds relationship behaviors and lesson 12 finishes the design.

Normalize until it hurts, then stop

Normalization is the discipline of storing each fact once. The wide spreadsheet stored the building name in every row, so a renamed building meant hundreds of edits and some rows were always missed. In a normalized model the building name lives once, in the Building table, and every room points to it. The classic rules can be summarized simply: every column in a table should describe that table's row, the whole row and nothing else. A column such as Building Address on the Room table breaks the rule, because the address describes the building, not the room.

Normalization also removes repeating groups: the 30 checklist columns that each held a pass or fail. Instead of one column per item, the normalized design has one Finding row per item checked. Adding a new checklist item becomes adding a row to Checklist Item, not adding a column to a table and editing every form, view and report. This is the single most valuable change in the Lumenvale design.

There is a point where further normalization stops paying. Signe's rule of thumb is to normalize until the model is correct, then denormalize deliberately when there is a measured reason. Storing the building on each finding, as well as on the inspection, duplicates a fact, but it lets a view of findings be filtered by building without a join through two tables, and it is set automatically when the finding is created, so it cannot drift. Lesson 4 shows how calculated and formula columns can show related values without storing a copy at all, which is usually the better choice.

Worked problem

Finding the repeating group

The old spreadsheet has columns Extinguisher 1, Extinguisher 2 and Extinguisher 3 for rooms with up to three extinguishers, each holding a pass or fail. A large lab has five. What is wrong, and what should the model do instead?

Show solution
  1. The three columns are a repeating group: the same kind of fact stored in numbered columns.
  2. The design caps the number at three, so a room with five extinguishers cannot be recorded without adding columns.
  3. Reports must look in three places to count failed extinguishers.
  4. Model each extinguisher check as its own Finding row linked to the room and to a Checklist Item named Fire extinguisher, with a sequence or asset tag column if individual units must be identified.

Answer: Replace the numbered columns with rows. One Finding per extinguisher checked removes the cap and makes counting simple.

Standard tables or custom tables

Dataverse arrives with standard tables that Microsoft defines and maintains, from the Common Data Model: Account, Contact, User, Team, Business Unit, Activity tables such as Task and Appointment, and many more when Dynamics 365 apps are installed. Custom tables are the ones you create. Using a standard table where it fits gives you its built-in columns, relationships, forms and integrations, and other apps recognise the data. Forcing a standard table to mean something it does not mean causes confusion for years.

For the inspection model, Signe used the standard User table for inspectors, because inspectors already sign in with their Lumenvale accounts and Dataverse security is built on users. She considered the standard Account table for buildings and rejected it: an account is an organization a business deals with, and a building is not one. Buildings, rooms, room types, checklist items, inspections and findings became custom tables. Contractors who sometimes inspect elevators became Contact rows, because a contact is exactly what they are.

Kinds of Dataverse tables. Lesson 2 explains each in detail.
Kind of tableExamplesChoose it when
Standard tableAccount, Contact, User, TeamThe meaning matches and you want built-in behavior and integration
Activity tableTask, Appointment, Phone Call, or a custom activityThe rows are things people do, with a due date and a regarding row, shown in timelines
Custom standard tableBuilding, InspectionYour business has a kind of thing no standard table represents
Virtual tableRows from an external database shown in DataverseThe data must stay in another system but should appear in apps
Elastic tableHigh-volume sensor or log dataVery large volumes with simple access patterns and flexible schema

Ownership: decide early

Every Dataverse table has an ownership type, and for a standard table you choose it when you create the table. User or team owned tables have an Owner column on each row; security can then grant access to rows the user owns, rows in the user's business unit, or all rows. Organization owned tables have no owner; a privilege on them applies to all rows or none. The choice cannot be changed later, so it belongs in the design meeting, not after the first app is built.

Signe made Room Type and Checklist Item organization owned. They are reference data that everyone reads and only a few administrators change. Inspection and Finding became user or team owned, because inspectors should see and edit their own inspections, campus supervisors should see their campus, and lesson 7 will show how security roles use ownership to do exactly that. Building and Room could have gone either way; Signe chose user or team owned so that each campus's facilities team could own and maintain its own buildings.

Naming, prefixes and solutions

Every custom table and column has a display name that people see and a logical name (schema name) used by code, flows and the Web API. The logical name starts with the publisher prefix of the solution it was created in. Lumenvale's publisher is Lumenvale Community Colleges with the prefix lcc, so the Inspection table is lcc_inspection. If you create tables in the default solution, they get the default publisher's prefix, usually cr followed by random characters, and moving them cleanly later is harder. Rupert Ellingsworth, who runs governance for the Power Platform, asks every maker to start in a named solution with the college's publisher before creating a single column.

Logical names cannot be changed after creation, so spend a minute on them. Use singular nouns for tables (Inspection, not Inspections), clear names without abbreviations that only one team understands, and fill in the description of every table and column. Descriptions used to be optional comfort; now Copilot in Power Apps, Copilot Studio agents and other AI features read them to understand what the data means. A column called lcc_rs with no description helps nobody. A column called Result with the description "Whether the checklist item passed, failed or was not applicable in this room" helps people and AI alike.

A design record for one table. Writing this before building catches naming and ownership questions early.
Table display name:   Inspection
Table logical name:   lcc_inspection
Plural display name:  Inspections
Primary column:       Inspection Number (lcc_name), autonumber INS-{SEQNUM:6}
Ownership:            User or team
Description:          A scheduled walk-through of one building by one inspector,
                      with one finding for each checklist item checked.

Designing with Copilot and the data workspace

Power Apps now lets makers design tables by describing them in natural language and by working in a visual data workspace, where tables and their relationships appear on a canvas and can be created and edited directly. You can ask Copilot for "a table to track building inspections with a scheduled date, an inspector and a status", review the proposed columns, change them, and create the table. AB-410 expects you to be able to create and edit tables this way as well as through the classic table designer.

Signe uses Copilot to draft, not to decide. A proposed design is a starting point that is often reasonable and sometimes wrong in ways that matter: a status stored as free text instead of a choice, a missing relationship, a table owned by the organization when rows need per-user security. She treats every generated column the way she would treat a junior colleague's suggestion: read it, check its type and description, and change what is wrong before creating it. The design decisions in this lesson are exactly the ones a reviewer must check.

Lumenvale's environments are in the United States geography, so the inspection data, including photos, stays in US data centers. Signe confirmed with Rupert that the Copilot features they plan to use are available in that geography before relying on them.

Capacity: what the model costs to store

Dataverse storage is measured in three kinds of capacity. Database capacity holds table rows and their metadata. File capacity holds files, images and attachments stored in file and image columns and in notes. Log capacity holds audit logs, the change history lesson 10 explains. A tenant gets capacity from its licenses and can buy more. A model that stores photos in file or image columns rather than in database columns, and that audits only the columns that matter, uses capacity sensibly. Octavia's inspectors take a lot of photos, so Signe planned image columns for findings from the start.

Dataverse capacity types.
CapacityWhat uses itDesign choice that helps
DatabaseRows in tables and their metadataAvoid duplicate tables and unnecessary copies of data
FileFile and image columns, note attachmentsStore photos and documents in file or image columns
LogAudit historyAudit the tables and columns that need it, with a retention period

A design checklist

Before anyone builds, Signe walks the draft through a short checklist with the business owner and the governance lead. It takes half an hour and has saved weeks.

Review before building.
QuestionWhy it matters
Does each table describe one kind of thing?Mixed tables cause duplication and confusing security.
Is every repeating group replaced by rows?Numbered columns cap growth and complicate reports.
Is each relationship's cardinality right?A wrong cardinality is expensive to change after data exists.
Is ownership chosen for each table?It cannot be changed after the table is created.
Can a standard table be used?Reuse brings built-in behavior; misuse brings confusion.
Are names, prefixes and descriptions agreed?Logical names are permanent; descriptions feed Copilot.
Who must see, create and change each table?The answers drive lessons 7 to 9.
Which changes must be audited?Auditing must be planned for log capacity and retention.

By the end of the session the whiteboard showed seven boxes and the lines between them. Octavia photographed it. "That's the first time I've seen the whole thing on one page," she said. Kwabena was already thinking about the report: counting failed extinguishers would be one filter on one table.

Common mistakes

  • MistakeStarting with the app screen and creating columns as the form needs them.

    InsteadDescribe the process first and design tables from it; screens change more often than facts.

  • MistakeStoring repeated items as numbered columns.

    InsteadTurn each repeating group into rows in a related table.

  • MistakeForcing a standard table to hold something it does not represent.

    InsteadUse a standard table only when its meaning matches; otherwise create a custom table.

  • MistakeLeaving ownership at the default without thinking.

    InsteadChoose user or team ownership or organization ownership deliberately; it cannot be changed later.

  • MistakeCreating tables in the default solution with a random prefix.

    InsteadCreate a named solution with your organization's publisher and prefix first.

  • MistakeAccepting a Copilot-generated table design without review.

    InsteadCheck every proposed column's type, description, relationships and ownership before creating it.

Summary and key terms

  • A data model describes the tables, columns and relationships a solution stores; a good one makes apps, reports, security and AI simpler.
  • Start from plain sentences about the process: nouns suggest tables, descriptions suggest columns, verbs suggest relationships.
  • Normalize so each fact is stored once and repeating groups become rows; denormalize only for a measured reason.
  • Reuse standard tables when their meaning matches; create custom tables otherwise.
  • Choose table ownership, names, publisher prefix and descriptions before building, because some cannot change later.
  • Copilot and the data workspace can draft tables, but a person must review the design.
Data model
A description of the tables, columns and relationships a solution stores and how they relate.
Table
A Dataverse structure that stores rows of one kind of thing; older documentation calls it an entity.
Cardinality
How many rows can be on each side of a relationship: one-to-many, many-to-one or many-to-many.
Normalization
Designing tables so each fact is stored once and every column describes its table's row.
Repeating group
The same kind of fact stored in several numbered columns of one row.
Publisher prefix
The short text at the start of every custom logical name, set by the solution publisher.
Table ownership
Whether rows have an owner (user or team) or belong to the organization; chosen when the table is created.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Name the three parts of the "things, facts, links" technique and what each becomes in Dataverse.

    Show answer

    Things become tables, facts about them become columns, and links between them become relationships.

  2. Why is "Extinguisher 1, Extinguisher 2, Extinguisher 3" a design problem?

    Show answer

    It is a repeating group: it caps the number of items and spreads one kind of fact over several columns; model each item as a row instead.

  3. Which design decision cannot be changed after a standard table is created?

    Show answer

    Its ownership type (user or team owned, or organization owned), along with its logical name.

  4. Why should every column have a description?

    Show answer

    People and AI features such as Copilot use descriptions to understand what the data means.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz