Advanced DAX Patterns for Enterprise Power BI Dashboards
The DAX measures, time intelligence patterns, and data modelling techniques I used to build production Power BI dashboards for my CN5026 coursework — applicable to any enterprise reporting scenario.
Why DAX Still Matters
Despite the rise of Python and SQL for analytics, Power BI with DAX remains the dominant tool in enterprise BI. Understanding DAX deeply separates analysts who build slow, fragile reports from those who build fast, maintainable dashboards.
The Star Schema Foundation
Every good Power BI model starts with a proper star schema:
- Fact tables — transactional data (Sales, Orders, Events)
- Dimension tables — descriptive data (Date, Customer, Product)
- Never use flat tables — they kill performance
Time Intelligence Patterns
The most common requirement in any dashboard is period-over-period comparison:
Dynamic TOP N with RANKX
Conditional Formatting via DAX
Instead of static rules, drive formatting from measures:
Apply this measure in Format → Conditional Formatting → Field value.
Performance Tips
- Avoid calculated columns — use measures instead
- Filter before calculating — CALCULATE with filters beats FILTER(ALL())
- Use DIVIDE not / — handles divide-by-zero gracefully
- Avoid bi-directional relationships — they cause ambiguity and slow queries
- Import mode beats DirectQuery — for datasets under 1GB, always import
These patterns formed the backbone of my CN5026 multi-page enterprise dashboard, which achieved sub-second query times on 500k+ row datasets.