Design a Power BI semantic model: build a reusable foundation for reports
A Power BI semantic model is more than a set of data tables: it bundles tables, relationships, calculations, names, descriptions, security, and refresh rules into an analytical contract that multiple reports can reuse. Start by defining the grain of each fact table and its relationships, then document metric definitions and access rules before building report visuals.
Design a Power BI semantic model: build a reusable foundation for reports
A Power BI semantic model is more than a set of data tables: it bundles tables, relationships, calculations, names, descriptions, security, and refresh rules into an analytical contract that multiple reports can reuse. Start by defining the grain of each fact table and its relationships, then document metric definitions and access rules before building report visuals.
Separate the source, model, and report
A report contains pages, visuals, and filters. The semantic model supplies the data structure and business meaning those reports query. A source database stores and exposes data; its schema is not automatically a useful model for report authors. These responsibilities can appear together in a PBIX file, but remain conceptually distinct. In the Power BI service, the report and model can also be published as separate items.
The model makes names understandable and defines reusable relationships and calculations. Calling it a trusted source of truth requires data quality, agreed metric definitions, access management, and refresh operations; the label alone does not make results accurate. Microsoft: semantic models in Power BI · Microsoft: end-to-end Power BI tutorial
Start with facts, dimensions, and relationships
Report visuals send filtering, grouping, and summarization queries to a model. A common starting point is a star schema. A fact table records what was measured at what grain, such as one sales line or one inventory snapshot. Dimension tables provide the dates, products, and customers used to group and filter facts. A star schema is useful guidance, not a rule for every situation. Microsoft: star schema guidance
Before modeling, write one sentence describing what a row in each fact table means. If the grain is unclear, joins can multiply totals or combine data recorded at different levels. Dimension keys should be unique for their intended role. Relationship cardinality and filter direction should match the actual keys and analysis. Validate automatically detected relationships by checking duplicate keys, orphan rows, and filter paths.
| Element | Design question | Check |
|---|---|---|
| Fact table | What does a row represent? | Consistent grain, additive values, duplicate loads |
| Dimension | How should users group or filter? | Unique keys, useful attributes, date roles |
| Relationship | How should filters propagate? | Cardinality, active paths, need for bidirectional filtering |
| Measure | What is the metric and aggregation rule? | Denominator, period, currency, blanks, filter behavior |
| Metadata | Can users understand the field? | Display name, folder, description, hidden technical fields |
The following fictional order data is for explanation. Net sales is after discounts and excludes tax; cancelled order lines have already been removed.
| Order date | Product key | Quantity | Net sales (KRW) |
|---|---|---|---|
| 2026-01-05 | P10 | 2 | 24,000 |
| 2026-01-05 | P20 | 1 | 18,000 |
| Product key | Product name |
|---|---|
| P10 | Mug |
| P20 | Notebook |
If ProductKey is unique in the product table, relate Product to SalesLine as one-to-many and connect a date dimension similarly. Filters flow from dimensions to sales lines, where the amount is aggregated. Schematic: Date (1) and Product (1) → SalesLine (*); Total sales = SUM(SalesLine[NetSales]). The example totals KRW 42,000. When viewing sales by product, product attributes filter the corresponding sales lines. If ProductKey is duplicated on the proposed “one” side, the relationship or result can be wrong. Investigate product versions, alternate keys, and the true grain before deleting duplicates. Power BI documents relationship cardinality, unique keys, and filter direction. Microsoft: model relationships
Treat calculations and names as a business contract
Dragging a column into a visual can create an implicit aggregation. For important metrics that should be reused consistently, explicit measures make the calculation and allowed use easier to govern. A measure named “Revenue,” for example, should document whether it includes tax, cancellations, returns, currency conversion, and which date defines recognition. A description should explain how to interpret the result, not merely repeat the formula. Microsoft distinguishes explicit measures from implicit summarization. Microsoft: measures in star schema models
Expose fields that report authors need; hide or remove unused columns and technical keys where appropriate. Hiding is not access control. Use sharing permissions and security features such as RLS/OLS, then test with the intended user roles. If natural-language or AI questions are in scope, clear names, descriptions, synonyms, and unambiguous relationships can improve answer quality, but cannot repair incorrect definitions. Microsoft: Model Explorer
Separate security functions by purpose. Row-level security (RLS) limits which rows a role can see; object-level security (OLS) limits access to specified tables, columns, or metadata. Neither is the same as merely hiding a field. In Power BI workspaces, Admin, Member, and Contributor roles can edit the model, so RLS and OLS do not apply to them in the service; they apply to Viewers. Test row and object rules as a Viewer, and minimize workspace roles and sharing permissions separately. If a test shows unexpected access, pause distribution, inspect role membership, workspace permissions, and model relationships, then test again. Microsoft: RLS · Microsoft: OLS · Microsoft: workspace roles
Keep source preparation and model refresh in view
Power Query connects to sources and transforms data; Model view defines table relationships and calculation meaning. These activities are related, but complex preparation does not always belong inside a report file. Decide whether transformations belong in the source, warehouse, Fabric, or Power Query based on governance, scale, reuse, and operational ownership.
Storage modes such as Import, DirectQuery, and Direct Lake affect data delay, capacity, source load, and feature support. They are a separate architectural choice and need their own comparison with representative workloads. Microsoft: semantic model modes
Storage choices trade off data freshness, query performance, source load, model and capacity resources, and feature limits. Use this table as a starting point; check supported sources, features, and current capacity limits before choosing.
| Choice | When to consider it | Main costs or limits |
|---|---|---|
| Import | Fast interactive queries and broad modeling features matter. | Data freshness depends on refresh; the model and refresh need memory and other resources. |
| DirectQuery | Data is very large or needs to be fresher than scheduled refresh allows. | Interactions query the source, so source performance and query-translatable operations matter; some transformations and calculations are limited. |
| Direct Lake | Large-scale analysis of Fabric OneLake Delta tables. | Requires the Fabric environment and compliance with that storage mode’s capacity and feature conditions. |
| Composite model | Multiple source groups or storage modes must be combined. | Adds design complexity and can introduce performance or calculation surprises; compare other designs. |
A composite model combines storage modes such as Import and DirectQuery; it is not simply another storage mode on the same footing. Do not assume one option is always faster or fresher. Compare it with representative report filters, concurrency, and refresh workloads. Microsoft: semantic model modes · Microsoft: Direct Lake overview · Microsoft: composite model guidance
Design and validate
Agree on user questions and definitions: metric, period, currency, exclusions, and acceptable data delay.
Record each fact table’s grain, source, data owner, and refresh responsibility.
Build a small model with representative facts, dimensions, relationships, and measures; remove redundant fields and meanings.
Reconcile model totals to an approved source result under the same filters and dates; check blanks, duplicates, and boundary dates.
Test security as consumer, author, and administrator; inspect which tables, rows, and columns are visible and what can be edited.
Attach representative reports and record performance, concurrency, refresh failures, and field-discovery issues.
Govern changes: document definitions, compatibility, ownership, and refresh paths, then regression-check key reports.
Model Explorer helps navigate tables, relationships, measures, roles, calculation groups, and translations. Its interface can change between Desktop releases, so consult current product documentation for UI steps. Microsoft: use Model Explorer
Diagnose common failures
**Totals exceed the source:** inspect duplicate keys, inconsistent fact grain, many-to-many relationships, and duplicate paths.
**A slicer changes only some visuals:** check active relationships, filter direction, and visual interactions.
**The same metric differs by report:** use a shared measure and agree on period, cancellation, and return rules.
**The Fields pane is hard to navigate:** improve names and folders; hide or remove irrelevant columns. Hiding does not secure data.
**Refresh or interactions are slow:** measure source queries, model size, relationships, and visual requests separately, then target the actual bottleneck.
A Power BI semantic model is a reusable layer for data, business definitions, calculations, permissions, and operations. A star schema is a starting point; correctness depends on keys, grain, relationships, calculations, and validation.