Build fast, governed Power BI models: star schema design, DAX measure patterns, incremental refresh, row-level security, deployment pipelines and performance tuning.
Most slow or untrustworthy Power BI reports trace back to the data model. A clean star schema, well-written measures and governance make reports fast and consistent.
Model as a star schema
- One fact table per business process (sales, tickets) at a clear grain.
- Dimension tables for who, what, where and when; connect them one-to-many, single direction filtering.
- A proper date table marked as such.
- Avoid wide flat tables, many-to-many relationships and bidirectional filters unless justified.
- Remove unused columns and use integer keys; reduce cardinality to shrink the model.
DAX measure patterns
Prefer measures over calculated columns for aggregations.
Total Sales = SUM ( Sales[Amount] )
Sales LY = CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )
Sales YoY % = DIVIDE ( [Total Sales] - [Sales LY], [Sales LY] )Use variables (VAR) for readability and performance, DIVIDE to avoid divide-by-zero errors and a dedicated measures table organized in display folders.
Incremental refresh
Define RangeStart and RangeEnd parameters, filter the source by them, then configure a policy such as store 5 years and refresh the last 7 days. This keeps refresh times short and supports large tables. Ensure the source query folds to the database.
Row-level security
Define roles with DAX filters on dimension tables, for example [Region] = USERPRINCIPALNAME() mapped through a security table. Test with “View as role”, manage membership through Entra security groups and remember that workspace members with edit rights bypass RLS.
Performance tuning
Use Performance Analyzer and DAX Studio to find slow visuals, reduce visuals per page, avoid high-cardinality slicers, use aggregations or composite models for huge data and prefer Import or Direct Lake modes where suitable.
Governance
- Separate dev, test and production workspaces with deployment pipelines.
- Certify shared semantic models so teams reuse them.
- Use sensitivity labels and limit export where required.
- Monitor refresh failures and usage with the admin and capacity metrics apps.
Quick wins
Replace calculated columns with measures, remove unused fields, fix relationships and schedule refreshes outside business peaks.
IT Guiders builds Power BI models and trains teams to maintain them.
power bi best practicespower-bi
