Skip to main content
Albero Academy

Getting & Connecting Data

The first step of any report — connecting to data sources, the difference between Import and DirectQuery, and combining sources.

Chapter 5Power BI13 min readBeginner friendly
  • #Power BI
  • #Data Sources
  • #Import

Every report starts with data. Power BI can connect to hundreds of sources — files, databases, cloud services — and how you connect matters: the choice between Import and DirectQuery shapes performance and freshness for the life of the report.

The Power BI ecosystem

  • Power BI Desktop — the free authoring tool where you build the model and reports.
  • Power BI Service — the cloud where you publish, schedule refresh and share (Chapter 16).
  • Power BI Mobile — apps to view reports on the go.

Data sources

Home → Get Data lists the connectors. The common ones:

SourceExamples
FilesExcel, CSV, JSON, a folder of files
DatabasesSQL Server, PostgreSQL, MySQL, Snowflake
Online servicesSharePoint, Dynamics, Google Analytics
Web / APIA web page table or a REST endpoint

Import vs DirectQuery

The most consequential choice you'll make about a source:

ModeHow it worksBest for
ImportLoads a copy of the data into Power BI (compressed, in-memory)Fast reports; most cases
DirectQueryQueries the source live on every interactionHuge or real-time data you can't copy

Combining sources

You can pull from several sources into one model — sales from a database, targets from an Excel file, a country list from the web — and relate them (Chapter 7). Power Query (Chapter 3) is where you shape and combine them before loading.

Practice

In Power BI Desktop, use Get Data to import an Excel file and a CSV, and connect to a folder of files. Note which sources offered DirectQuery. Load a small database table and decide, with reasons, whether Import or DirectQuery fits.

Key takeaways

  1. 01Power BI = Desktop (author), Service (publish/refresh/share) and Mobile (view).
  2. 02Get Data connects to files, databases, online services and the web/APIs.
  3. 03Import copies data into Power BI's fast in-memory engine; DirectQuery queries the source live.
  4. 04Default to Import (faster, full DAX); use DirectQuery only for huge or real-time data.
  5. 05You can combine multiple sources into one model and relate them.