Power BI / Tableau Interface & Data Connectors
Connect BI tools to warehouses/files and navigate the core authoring interfaces.
In plain words
BI tools connect to your data, let you build charts by dragging fields, and then publish them so others can see them and keep them updated.
Think of it like…
Two ways to read a library's catalogue: photocopy it and read at your desk (import: instant but only as fresh as the last copy), or phone the librarian each time you have a question (live: always current, but slow when the librarian is busy).
Where you’ve seen it
A retail team has a 120-million-row sales fact table (about 6 GB as CSV) and 5 dimension tables. In Power BI they choose Import: the columnar engine compresses it roughly 6 to 7 times to under 1 GB, every visual responds in milliseconds and a scheduled refresh runs at 06:00 after the nightly warehouse load. An inventory page needs near-real-time stock, so it uses DirectQuery to the warehouse's inventory_current table, and a composite model keeps the small dimensions in import mode. The refresh uses a service account through an on-premises data gateway (not an analyst's personal login), query folding pushes Power Query filters down to SQL, and row-level security limits each regional manager to their own region. The same dataset published as a Tableau published data source with a .hyper extract would follow the same logic.
Words you’ll hear
- Import / extract
- A compressed copy of the data stored in the BI engine and refreshed on a schedule.
- DirectQuery / live connection
- Queries sent to the source on every interaction; no stored copy.
- Gateway / bridge
- A service that lets the cloud BI tool reach on-premises data sources for refresh or live queries.
- Query folding
- Power Query transformations translated to native SQL so the source does the work.
Visual diagram
Theory & deep dive
Connectors and connectivity modes
Both tools ship connectors for files (Excel, CSV, Parquet), relational databases, cloud warehouses, SaaS APIs and OData. In Power BI Desktop, Get Data opens Power Query, where each step is recorded (M language) and, when possible, folded into a single SQL statement executed by the source; steps that break folding (some custom functions, certain joins) pull data into the engine and slow refresh, so keep heavy filtering and column selection early. The views are Report (visuals), Table and Model (relationships and measures). In Tableau Desktop, the Data Source tab holds connections and the logical model; worksheets build individual charts and dashboards combine them.
Modes: Import (Power BI) or Extract (Tableau .hyper) copies data into a columnar, compressed store (5 to 10 times compression is typical), giving fast interactions and offline use but requiring scheduled refresh and size limits (for example, shared Power BI capacity has a per-model size limit of around 1 GB; check current limits). DirectQuery or a Tableau live connection sends queries to the source for each visual, so the data is always current but speed depends on the warehouse, some features are restricted and concurrency can load the source. Composite models mix modes per table: import small dimensions and aggregated facts, query detail on demand.
Dashboard on 120M rows refreshed nightly: Import. Operations wall display needing data under one minute old: DirectQuery against a table indexed for it, with a limited set of visuals. Executive KPI page and a drill-through to detailed orders: composite model with an imported aggregate table and DirectQuery detail.
Publishing, refresh and governance
Publishing places the report and its semantic model (Power BI) or published data source (Tableau) in a workspace or project with permissions. Scheduled refresh requires stored credentials: use a service account or managed identity, not an individual's login, or refreshes fail when the person changes their password or leaves. Sources inside a private network need an on-premises data gateway (Power BI) or Tableau Bridge. Refresh frequency is limited by licence and capacity (for instance Power BI Pro allows up to 8 scheduled refreshes a day and Premium capacities up to 48; check current documentation), so align schedules with upstream loads: refreshing before the warehouse finishes loads yesterday's data.
Governance basics: certify one shared semantic model that many reports use instead of duplicating datasets; apply row-level security (roles with filters such as region = USERPRINCIPALNAME mapping); use deployment pipelines or environments (dev, test, prod); monitor refresh history and set failure alerts; and document ownership and definitions. Connector choice also affects cost and load: avoid DirectQuery against a transactional database during business hours, and prefer incremental refresh for large tables so only recent partitions reload.
A role defined with the filter [Region] = LOOKUPVALUE(UserRegion[Region], UserRegion[Email], USERPRINCIPALNAME()) means each regional manager sees only their own rows in the same published report, with no duplicated dashboards.
How it works, step by step
Step 1 of 41. Connect and profile
Choose the connector, preview the data and decide import versus live based on size and freshness.
- Import
- or live per table
When to use it & trade-offs
What it is
Power BI and Tableau are the two dominant BI authoring tools. Both follow the same workflow: connect to data (files, SQL databases, cloud warehouses, APIs, other semantic models), prepare and model it (Power Query or Tableau Prep and relationships), author visuals in a workbook or report, publish to a service (Power BI Service, Tableau Server or Cloud) and refresh on a schedule. The key decision at connection time is the connectivity mode: import or extract (a compressed local copy, fast, refreshed on a schedule) versus live or DirectQuery (every interaction queries the source, always fresh but dependent on the source's speed).
Why it matters: Choosing the wrong connection mode produces dashboards that are slow, stale or expensive, and personal credentials or missing gateways cause refresh failures that stakeholders notice before you do. Data scientists who partner with BI teams need the vocabulary (semantic model, extract, gateway, query folding, row-level security) to design reliable, governed reporting rather than one-off files that break when someone leaves.
When to reach for it
- Standing up governed dashboards for business users
- Choosing between import and live for a new data source
- Setting up secure, monitored refreshes
When to avoid or be careful
- Personal credentials on scheduled refresh
- DirectQuery against a busy transactional database
- Duplicating the same dataset across many reports
Connectivity modes
Strengths: Millisecond interactions; full feature set; offloads the source.
Watch out: Stale between refreshes; size limits.
Strengths: Always current; no copy.
Watch out: Slower; loads the source; feature limits.
Strengths: Aggregates fast, detail on demand.
Watch out: More complex to design and debug.
Interview signals & numbers to know
When this topic comes up
- “The dashboard is slow”
- “The refresh failed again”
- Import versus DirectQuery
- On-premises data gateway
- Row-level security
Benchmarks & rules of thumb
- 5 – 10×
- typical columnar compression of imported data
- 8 / day
- scheduled refreshes on Power BI Pro (check current limits)
- 120M rows → < 1 GB
- import size in the example
Common mistakes & follow-ups
Common interview mistakes
- Scheduling the refresh before the upstream load completes.
- Breaking query folding early in Power Query and pulling all rows into the engine.
- Building a new dataset per report and ending up with conflicting numbers.
Likely interviewer follow-ups
- When would you choose DirectQuery over Import?
- How do you secure a dashboard so managers see only their region?
- Why does query folding matter for refresh time?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Power BI / Tableau Interface & Data Connectors with data science interview Q&A and hands-on practice.