Sub topic 1
What a Semantic Model Does and Why Storage Mode Matters
Prerequisites
Assume you can connect Power BI Desktop to data, create relationships, build a star schema, and write basic DAX measures. You should also know that a fact table stores events and dimension tables describe them.
What a Semantic Model Does
A semantic model is the layer between source data and a Power BI report. It defines tables, relationships, calculated columns, measures, and security rules. It gives business meaning to data, so a visual can ask for “total sales by year” without containing database-specific SQL.
Storage mode determines where a table's data comes from when a visual runs. It affects freshness, report speed, source-system load, modeling features, and capacity usage. Storage mode is set per table, so one model can use more than one mode.
Storage Modes
| Mode | Where data comes from | Typical behavior |
|---|---|---|
| Import | A copy in Power BI memory | Fast queries; data changes after refresh |
| DirectQuery | The original database | Queries run at report time |
| Direct Lake | Delta tables in OneLake | Reads lake data into memory without a traditional import copy |
| Dual | Import and DirectQuery behavior | Lets a table work efficiently in composite models |
Direct Lake is mainly associated with Microsoft Fabric. It reads columns from Delta-formatted tables in OneLake. If a query cannot use the Direct Lake path, it may fall back to DirectQuery.
VertiPaq and Import Mode
VertiPaq is Power BI's in-memory, columnar storage engine. It stores each column separately instead of storing complete rows together. This makes repeated values cheap to represent. For example, a column containing the same product category many times can store a dictionary of unique categories and compressed references to that dictionary.
In Import mode, Power BI loads a copy of selected source data into VertiPaq. Report queries usually run against this compressed memory copy, which makes filtering and aggregation fast. The copy is not automatically current. A refresh reruns the model's Power Query steps and loads updated data.
Exercise
A report must show newly inserted database rows immediately. Which mode is the most direct fit?
Show answer
DirectQuery, because it sends queries to the source when the visual runs.