← awmium/blog
blog/fabric-app-data-sources.mdread-only

Where the data comes from

Pick the source by who owns the data and how fresh it must be

Once a team knows what a Fabric app is, the next questions are about data. Where can the app get its numbers? If people change something in it, where does the change go? And how fresh will any of it be on a Monday morning?

This post goes through the sources a Fabric app can use today and how I choose between them. Two questions do most of the choosing, and it ends with a decision table and five questions to settle before anyone writes a query.

Sorting the sources: each one settles into a row by who owns the data and a column by how fresh it is, and the ones that can write are marked.
Sorting the sources: each one settles into a row by who owns the data and a column by how fresh it is, and the ones that can write are marked.

Two questions do most of the choosing

When a team brings me an app idea, I ask two questions about every piece of data it shows.

  1. Who owns the data? If another team already models it, secures it and answers for it, read it where it lives rather than copy it. If the data is born in the app, such as a correction, a comment or an approval, the app owns it and keeps it in its own database. If it lives outside Fabric, the app fetches it from code that runs on the server.
  2. How fresh must it be? “Live” means something different for each source. An app over a semantic model can be no fresher than the model, a lakehouse’s SQL endpoint usually trails its tables by under a minute, and a snapshot is as old as the last deploy.

One check sits beside them: does the app need to write? Of the sources in Fabric, only three take writes: the app’s own database, and connectors to a warehouse or a SQL database in Fabric. A semantic model and a lakehouse’s SQL endpoint are read only.

What an app can read from today

A Fabric app has five kinds of source:

  • Its own SQL database, with tables defined in the app’s code. Data the app creates belongs here.
  • Connectors to data you already have in Fabric: a lakehouse through its SQL analytics endpoint, a warehouse, a SQL database in Fabric, and a semantic model.
  • Functions: server code inside the app, for services the browser should not call itself.
  • A snapshot, exported before the build and shipped inside the website as a file.
  • What the person brings: text pasted into the app and worked on in the browser.

Each connector comes with a fixed set of operations, and an app should be given only the ones it needs.

The four connectors and their operations: a lakehouse reads, a warehouse and a SQL database can also create, update and delete, and a semantic model answers DAX; give each app only what its job needs.
The four connectors and their operations: a lakehouse reads, a warehouse and a SQL database can also create, update and delete, and a semantic model answers DAX; give each app only what its job needs.

An app can mix sources: a model for the numbers, and its own database for the comments and sign-offs people add to them. Each source has its own client in the code, so the app asks each one separately and combines the answers itself. Keep that light, and leave heavy joins to the model or the warehouse, where they are governed once.

When the business owns it in a model

The app sends a DAX query through the semantic model connector and gets rows back. Measures, relationships and row-level security stay in the model with the people who own them, and the app becomes a new way to present numbers the business already trusts. The docs route model queries through this connector and say to replace any other model client rather than keep two. The template’s current default release still ships its own data client and moves to the connector in later releases, so check which one your project has before you design around it.

It is read only, and because every query runs as the person looking, each user needs Read and Build on the model, with the Semantic Model Execute Queries REST API tenant setting on. FA-B-03 explains why Build deserves a second look.

Freshness is where teams get surprised. The app can be no fresher than the model, and that depends on the model’s storage mode:

  • Import. The model holds a copy of the data, as current as its last refresh, which is usually on a schedule.
  • Direct Lake. The model reads Delta tables in OneLake as of its last framing. Framing runs automatically when those tables change, unless the owner has turned that off so a load can finish first.
  • DirectQuery. The model holds no copy and asks the source on every query.
When a change in the source reaches the app: after the next refresh in Import, after the next framing in Direct Lake, on the next query in DirectQuery, and in every mode only when the app asks again.
When a change in the source reaches the app: after the next refresh in Import, after the next framing in Direct Lake, on the next query in DirectQuery, and in every mode only when the app asks again.

The app also sees new numbers only when it sends its query again, usually when a page opens or a filter changes, and any caching in its code adds to the wait. So when someone asks for “live”, I ask the model’s owner two things before promising anything: which storage mode, and when it refreshes. If that is not fresh enough, the fix belongs in the model.

When another team owns the tables

A lookup list in a lakehouse, targets in a warehouse, an operational database another team runs: three connectors cover these. The developer picks the tables and columns the app needs, and the app reads them as typed rows, as the person looking. The docs ask for the columns to be named and the rows capped on every query.

The lakehouse connector is read only, sees the lakehouse’s Delta tables but not its files, and usually trails the lakehouse by under a minute. The warehouse and SQL database connectors answer from the tables as they stand, and they can write.

That is where ownership matters most. An app that updates another team’s warehouse becomes one of its writers. Before it goes live, agree three things with the owning team: which tables and columns the app may touch, which operations it gets, and who answers for a bad row. The connector’s operations and the rules on each table then hold the app to exactly that.

For numbers that need business logic, I still prefer the model: a measure defined once beats the same sum written again in an app.

When the app owns the data

Some data has no home until the app creates it: a correction, a plan, a comment, an approval. It belongs in the app’s own database. The developer defines the tables in code, with rules on each one for who may read, add, change or delete which rows; Fabric applies the tables on deploy and enforces the rules on every request. A deploy applies the tables’ shape, not their rows, so starting data needs its own load step.

It is a real SQL database in Fabric, and those copy their tables into OneLake automatically, in near real time, so a pipeline, a notebook or a semantic model can pick up the edits. Nothing will until someone points it there.

Three designs for an org chart. Take an org chart where people correct who reports to whom. Three designs are possible:

  1. A connector to an existing SQL database. The SQL database connector can read and write, so the app edits the database the people list already lives in. It fits when that database is the master and its owners accept the app as a writer.
  2. Read from a semantic model, write through a function. The model is read only, so every correction goes through a function that writes somewhere else, as the app, and the model shows the change only when it next reads that source. Two moving parts for one edit.
  3. The app’s own database. The corrections are data the app creates, so they live in tables it defines, under its own rules, and reach OneLake for everyone else.
Three writeback designs for an org chart: a connector to an existing SQL database, a model plus a function, and the app’s own database, whose edits are copied on to OneLake.
Three writeback designs for an org chart: a connector to an existing SQL database, a model plus a function, and the app’s own database, whose edits are copied on to OneLake.

The choice comes back to the first question: which system is the master of the reporting line? Whichever design wins, reports that read people from another source see no correction until someone merges the app’s data into their flow, so settle it on day one.

When the data lives outside Fabric

For a service outside Fabric, use a function: server code inside the app, called from the website through the same client. It does what a browser should not: it calls an API with a key, keeps that key out of the website’s files, and combines several calls before anything reaches the screen. Some services also refuse calls made from a web page on another site; without a function, the usual way round is a proxy hosted outside Fabric, one more thing to run and secure. The data is as fresh as the service at the moment of the call, and a run can last up to 240 seconds.

Put identity on the approval list. A deployed function calls out as the app, with the permissions the app has been granted, not the viewer’s; today that identity is the owner of the app item. Declaring a connection grants nothing on its own, so someone has to give that identity access deliberately. When a function uses the app’s own database, it keeps the caller’s identity.

When no one needs it live

Some apps need no query at all. Take an app that draws a model’s measures and how they depend on each other. A script can export the model’s definition before the build, with the developer’s access, and ship the result inside the website as a file. Nobody who opens the app needs a permission on the model.

It has a price. The snapshot is frozen until someone exports it again and redeploys, one deployed app serves one model, and the file counts toward the website’s 100 MB compressed limit. It also shows every viewer everything in it, because row-level security cannot apply to a file. Keep snapshots to data that is the same for everyone.

The opposite route needs no export: the person pastes a model’s definition and the browser does the work. One deployed app then serves any model, even in tenants it cannot reach, and the pasted text need not leave the browser.

Every path reads as someone

Each source is read under somebody’s access. You do not need the detail to choose a source, but you do need to know whose access you are signing up for. FA-B-03 goes through each one.

How a Fabric app reaches each source: connectors and the app’s own database answer as the person looking, a function calls out as the app, and a snapshot arrives with the website for anyone who can open it.
How a Fabric app reaches each source: connectors and the app’s own database answer as the person looking, a function calls out as the app, and a snapshot arrives with the website for anyone who can open it.

What to take away

This is the decision table I leave with a team:

who owns the datasourcehow freshcan the app write?read as
the business, in a semantic modelsemantic model connector (DAX)no fresher than the modelnothe viewer
a data team, in a lakehouselakehouse SQL endpoint connectorusually under a minute behindnothe viewer
a team, in a warehouse or SQL databasewarehouse or SQL database connectoras the tables standyes, the operations you allowthe viewer
the appits own SQL databaseas the tables standyesthe viewer, through each table’s rules
a service outside Fabrica functionas fresh as the serviceif the service allows itthe app
nobody needs it livea snapshot in the websiteas of the last deploynonobody: every viewer sees all of it
the person using the apppasted text, in the browseras of the pastenonothing to check

Before anyone writes a query, settle these five questions:

  1. Who owns each piece of data the app shows, and who will own what it writes?
  2. How fresh does each number need to be, and does its source deliver that? For a model: which storage mode, and which refresh schedule?
  3. If the app writes into another team’s warehouse or SQL database, which tables, columns and operations have they agreed to?
  4. Where must the app’s own data go next, who will pick it up from OneLake, and which system is the master of each field?
  5. Does anything skip the viewer’s own access, such as a function running as the app or a snapshot, and who has reviewed what it exposes?

Next in this series, FA-B-03, Who sees what: why the person looking is the security model in a Fabric app, and what that means for sharing, Build and row-level security.

note Checked against the docs

Fabric Apps is in preview, so details move. Everything here was checked against Microsoft’s Fabric Apps documentation and the Fabric pages on Direct Lake, the SQL analytics endpoint and SQL database on 23 October 2026. Where the two disagree later, the docs win.

read# Where the data comes from[ ] sections2,212 words · 10 minTop