The Get Data feature is the entry point of Power BI. The selected connection mode decides performance, refresh behavior, and data storage.
When connecting to a data source, Power BI internally decides whether data will be cached in memory or queried live. This decision affects how visuals respond to user interactions.
// Import vs Direct Query logical behavior
IF(mode="Import","Data stored in Power BI",
IF(mode="Direct","Live query to database","Choose Mode"))
Import Query loads data into Power BI memory. All visuals work on stored data, making reports extremely fast.
// Example of imported Excel data
Date Product Amount
2024-01-01 Mobile 15000
2024-01-02 Laptop 45000
2024-01-03 Tablet 20000
Direct Query does not store data. Each interaction sends a live query to the database.
// Live SQL query executed by Power BI
SELECT Product, SUM(Amount) AS TotalSales
FROM Sales
GROUP BY Product;
Experience the speed difference between modes.