Skip to the workspace
Pebellslearn by building
Getting Data In  ›  Lesson

Import Mode vs DirectQuery

Import Mode 13 minImport copies compressed data into the model for fast, full-featured reports that are as fresh as the last refresh, while DirectQuery sends a query to the source on every interaction.

power bi / Import Mode vs DirectQuery

Explore each scene at your own pace.

01 · The rule

The rule

Import Mode vs DirectQuery

Meera loves how fast the Weekly Sales report opens, but at 3 p.m. it still shows the numbers from the 7 a.m. refresh. Meanwhile the kitchen manager wants a screen of online orders placed in the last five minutes. Both requests trace back to a single choice made when you connect to a source: the storage mode.

The rule

Import copies the data for speed; DirectQuery asks the source every time.

Import. At each refresh, Power BI copies the data into the model and compresses it in a fast in-memory column store (the VertiPaq engine). Visuals read that copy, so they respond quickly, and every Power Query and DAX feature is available. The price: the data is only as fresh as the last refresh — up to 8 scheduled refreshes a day on Pro, 48 on PPU or a capacity — and the model counts against size limits, 1 GB per model on Pro.

DirectQuery. Only the table structure is stored. Each time someone opens a page, moves a slicer or changes a filter, Power BI turns the visual's request into a query and sends it to the source. The numbers are as current as the source, and the data can be far bigger than any model. The price: every click waits for the source, the source carries the load, some Power Query steps and DAX functions are restricted, and a single query may return at most about a million rows to Power BI.

Import DirectQuery
Data stored in the model Yes, compressed No
Freshness As of the last refresh At the moment of the click
Speed Fastest As fast as the source
Size Limited by the model size limit Limited by the source
Features Everything Some restricted

A table can later be switched from DirectQuery to Import, but a table set to Import cannot be switched back. Decide deliberately.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.