OneLake shortcuts: use your data in Fabric without copying it
What OneLake shortcuts are, which sources they can point to, and when a shortcut beats copying data into Microsoft Fabric for your business.
Most people learning Power BI start the same way: load one big spreadsheet, drag fields onto a canvas and build visuals. It works, until the totals stop making sense, the measures get complicated and the file grows sluggish. The fix is rarely a cleverer formula. It is usually the shape of the data model.
Microsoft's own modelling guidance points Power BI developers towards the star schema. This guide explains what that means in plain terms, why it matters, and how to reshape a typical flat export into one.
A star schema organises your data into two kinds of table.
Fact tables store observations or events: sales orders, invoices, stock balances, website visits. Each row records something that happened, with numeric columns you want to add up (quantity, value, cost) and key columns that say who, what, where and when. Fact tables tend to have a lot of rows and keep growing.
Dimension tables describe the business entities you analyse by: customers, products, stores, dates. Each has a unique key column plus descriptive columns used for filtering and grouping, such as product category or customer region. Dimension tables are usually much smaller.
Draw it on paper with the fact table in the middle and the dimensions around it, and you get the star shape that gives the design its name.
| Table | Type | Example columns |
|---|---|---|
| Sales | Fact | OrderNumber, OrderDate, ShipDate, ProductKey, CustomerKey, Quantity, SalesAmount |
| Product | Dimension | ProductKey, Product, Subcategory, Category |
| Customer | Dimension | CustomerKey, Customer, City, Region |
| Date | Dimension | Date, Month, Quarter, Financial Year |
One detail surprises people: there is no setting in Power BI that marks a table as a fact or a dimension. As Microsoft's documentation notes, the role is determined by the relationships you create.
Relationships in a Power BI model are filter paths. When you pick "North" in a Region slicer, that filter travels from the Customer table along the relationship to the Sales table, and every measure recalculates for northern customers only.
In a star schema, the most common relationship is one-to-many: the "one" side is the dimension (each product appears once) and the "many" side is the fact table (each product appears on many sales rows). Filters flow cleanly from dimensions into facts, which brings several benefits:
A single flat table can hold the same information, but it repeats every product and customer detail on every row, and it makes some calculations awkward, particularly when you add a second fact table such as budgets or targets.
Suppose your finance system gives you one CSV with a row per order line: order number, order date, product name, category, customer name, city, quantity and value. Microsoft's advice for this situation is to use Power Query to shape the export into separate fact and dimension tables. A practical approach:
Once the shape is right, measures become short and reusable:
Total Sales = SUM ( Sales[SalesAmount] )
Average Order Value =
DIVIDE ( [Total Sales], DISTINCTCOUNT ( Sales[OrderNumber] ) )
The order number stays in the fact table. Microsoft calls an attribute like this a degenerate dimension: an attribute of the fact table that's needed for filtering, where a separate table holding just that one column would only add storage and clutter.
Data from a database often arrives normalised, with products in one table, subcategories in another and categories in a third. This is a snowflake dimension.
Power BI can model it as-is, but Microsoft's guidance lists the drawbacks: more tables to load, longer filter paths and more tables cluttering the Data pane (the field list). You also can't build a hierarchy from columns in more than one table, so a Category › Subcategory › Product drill-down needs everything in one place. The general recommendation is to merge the snowflake into a single Product table in Power Query. The small amount of repeated text is usually a good trade for a simpler model.
Turning on bi-directional filtering everywhere. It can feel like a quick fix when a slicer doesn't behave, but Microsoft recommends you minimise bi-directional relationships because they can hurt query performance and confuse report users. Keep relationships single-direction by default. Where you need the other direction for one calculation, the CROSSFILTER function can change it inside a single measure instead of across the whole model.
One date table, several date columns. If your sales table has an order date and a ship date, you can relate both to one date table, but only one relationship can be active between two tables. The other must be inactive and is only usable through USERELATIONSHIP in a measure:
Sales by Ship Date =
CALCULATE ( [Total Sales], USERELATIONSHIP ( Sales[ShipDate], 'Date'[Date] ) )
If report users need to slice by both dates freely, Microsoft suggests creating a separate date table for each role, such as Order Date and Ship Date, with clearly named columns.
Mixing grains in a fact table. Fact tables should load data at a consistent grain. Daily sales and monthly targets belong in separate fact tables, both related to the same dimensions.
Relying on implicit sums. Dragging a numeric column onto a visual lets Power BI sum it automatically. That is fine for quantities but wrong for something like unit price, which should never be added up. Writing explicit measures and hiding raw numeric columns keeps the model honest.
A star schema is not an advanced technique reserved for large organisations. It is the shape Power BI is built around. Split your data into facts (what happened) and dimensions (what you analyse it by), connect them with one-to-many, single-direction relationships, and flatten snowflakes into single tables where you can.
Get the model right first and the DAX, the visuals and the performance tend to follow. If you are learning Power BI, practise reshaping a flat export into a star schema; it is one of the most valuable habits you can build.
Free every Friday
Join our free live class every Friday at 6pm UK time: hands-on lessons, live Q&A and career tips from a working Senior Data Analyst.
Keep reading
What OneLake shortcuts are, which sources they can point to, and when a shortcut beats copying data into Microsoft Fabric for your business.
Why every new Power BI report shouldn't bring its own copy of the data, and how a shared semantic model gives your business one version of the numbers.
SQL reads your query in a different order from the one you type. Learn that order and you'll understand alias errors, WHERE vs HAVING and where LIMIT really applies.
The Data Brief
New guides on Power BI, Fabric and SQL, plus class and cohort dates first. Free, and you can unsubscribe any time.