CASE STUDY · MANUFACTURING AND DISTRIBUTION · FABRIC DATA PIPELINE
A Fabric Data Pipeline a Power BI Person Can Own
We built the pipeline with the tools the client's team would actually maintain, even where hand-written SQL would have been easier for us.
The Challenge
A pilot is only useful if the company can keep it running afterward. The person most likely to look after this one was probably a Power BI developer, not a database administrator. A warehouse built on hand-written stored procedures would have met the contract and been hard to hand over.
We chose tools they could open, read and change.
What We Did
The pipeline has three layers, each built with a Fabric tool that has a visual or Power Query interface.
- Raw copy: a Copy job lands exact copies of the source tables in a lakehouse. Large tables load incrementally on a modified date, small ones in full.
- Warehouse: Dataflow Gen2 cleans and models the data into a Fabric Warehouse, with renames, type casts, lookups and sign flips in Power Query. Each query rebuilds its table in full every night.
- Model: a Power BI semantic model in import mode, with business rules written as DAX measures.
One pipeline runs the three nightly, in the quiet window after the ERP's own overnight jobs. The model refreshes only if the load succeeded, and a failure sends an alert to Teams or Outlook. The pipeline's run history is the evidence that it runs without anyone touching it.
Design Rules
We held ourselves to a few rules so the build stays readable:
- Source IDs are the keys. With one source system per entity there is no need for surrogate keys.
- Keep every row and filter in measures. Things like intercompany customers and credit memos are flagged as columns, and inclusions and exclusions are applied in DAX, so excluded rows stay visible when a number is off.
- Incremental logic lives in the Copy job only. Dataflow Gen2 writes to a warehouse table by replacing it, so we do not ask it to upsert.
- Fall back to SQL one table at a time, and only if a table is too large to reload nightly, too heavy on capacity, or needs history.
- Save the semantic model as a Power BI project (PBIP) so changes can be tracked in Git.
The Outcome
The solution runs on a schedule built from tools a Power BI developer already uses. If a load fails, the model does not refresh, so users keep yesterday's complete data instead of a half-loaded set.
Not everything is low-code, and we say so in the handoff notes. The three regular queries are stored procedures, because they take date parameters and need to run from SQL, Excel or the data agent. Where SQL earns its place we use it. We just do not start there.
1
Nightly Pipeline From Source to Model
Low-Code
Copy Job, Dataflow Gen2 and Power BI
Yesterday's Data
Stays Live if a Load Fails
PBIP
Model Saved for Source Control
RELATED
Where to Go Next
More from this engagement:
- Case study: Testing a Move to Microsoft Fabric on One Reporting Stream First
- Case study: Reading 47 SQL Queries to Find the Rules Behind the Numbers
- Case study: When the Old Report Is Wrong at the Total: Deciding Where Numbers Should Tie
- Case study: Asking Inventory Questions in Plain English With Copilot
Related reading:
Have a Similar Project?
Free 30-minute call. We'll tell you how we'd approach it and what it would cost. No pitch, no pressure.