Stop 02 · Connecting to DataTopics · 5/8

Import Mode vs DirectQuery

Part of the Power BI Roadmap

In short

Every time you connect to a database, Power BI quietly asks a big question: copy the data in, or ask the database live every time? The answer shapes speed, freshness and what DAX you can use.

Import copies data into Power BI's fast in-memory engine and needs refreshing, while DirectQuery leaves data in the source and queries it live, which is slower and has some DAX and modeling limits.

The jaadu stands between an open, well-stocked fridge and a small corner shop, holding an old phone to its ear.

Think of it like this

Stocking the fridge vs calling the kirana

Import is stocking your fridge on Sunday: whatever you want is right there, instantly, but it is only as fresh as your last shopping trip. DirectQuery is phoning the kirana store every time you want milk: always fresh, but you wait for delivery each time.

Watch it happen

Import vs DirectQuery

Import

  • Data is copied into the in-memory VertiPaq engine
  • Very fast visuals
  • Full DAX and Power Query features
  • Data is as fresh as the last refresh

DirectQuery

  • Data stays in the source
  • Each visual sends a query to the database
  • Near real-time, but slower and limited by the source's speed
  • Some DAX functions and transformations are restricted

Start with Import. Choose DirectQuery only when data is too large to import or must be close to real time, and the database is fast enough.

The big ideas

What you need to know

Import is the default

Most reports use Import. Compression means even millions of rows often fit comfortably.

Import needs refresh

Imported data is a snapshot. Schedule refreshes in the Service to keep it current.

DirectQuery is live

Every click sends SQL to the source, so a slow database means a slow report.

DirectQuery has limits

Some Power Query steps that cannot fold are blocked, and some DAX patterns are slow or unsupported.

How it works

Choosing a storage mode

  1. 1

    Does it fit in memory?

    If the data is a few million rows or less, Import is almost always fine.

  2. 2

    How fresh must it be?

    If hourly or daily is enough, scheduled Import refresh works.

  3. 3

    Is the source fast?

    DirectQuery needs a well-indexed database that can answer many queries quickly.

  4. 4

    Mix if needed

    Composite models let big fact tables use DirectQuery while small lookups are imported.

Save yourself the pain

Common mistakes

Oops

Picking DirectQuery because it sounds more modern or real time.

Do this instead

Default to Import. Pick DirectQuery only for a clear reason like size or real-time needs.

Oops

Building heavy Power Query transformations on a DirectQuery table.

Do this instead

Push that logic into a SQL view so it folds, or switch the table to Import.

Your mission

Feel the difference

~30 min

Quick check

A report must show data no older than a few seconds and the table has billions of rows in a fast warehouse. Which mode fits best?

Go deeper

  1. 1Default to Import mode while learning.
  2. 2List two situations where DirectQuery makes sense.
  3. 3Read Microsoft's list of DirectQuery limitations.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge