VizActa

DAX: calculations and optimisation

Live online or on-siteWith an instructor, practical workshops and applied exercises. Dates agreed with your team.

Write reliable measures and understand contexts, filters and calculation performance.

3 daysUp to 12 participants9 modules

Detailed programme

01Mastering DAX Functions
  • Explore scalar vs table functions and how they behave differently
  • Use the SUMX and RANKX iterators, and filter tables with FILTER.
  • Nest and chain DAX functions to create flexible, reusable logic
  • Understand functional categories: aggregation, logical, text, and info
  • Apply RELATED, RELATEDTABLE, and LOOKUPVALUE in advanced ways
02Deep Dive into Evaluation Contexts
  • Master row context, filter context, and context transition with CALCULATE
  • Control and override filters with CALCULATETABLE and filter modifiers
  • Debug context issues using visual examples and intermediate measures
  • Resolve total mismatches and slicer conflicts through context shaping
  • Understand evaluation flow from visuals through the DAX engine
03Variables and Flow Control in DAX
  • Use VAR and RETURN to break down complex logic into readable steps
  • Improve performance by reusing expressions with variables
  • Debug DAX formulas using intermediate VAR outputs
  • Use variables in nested IF, SWITCH, and ranking patterns
  • Compare inline vs variable-based expressions for maintainability
04Advanced Time Intelligence Techniques
  • Design custom calendars for fiscal, 4-4-5, or weekly periods
  • Implement dynamic rolling totals, YTD, MoM, and QoQ logic
  • Use DATESINPERIOD, SAMEPERIODLASTYEAR, and NEXTQUARTER strategically
  • Build measures responsive to disconnected date slicers
  • Manage multiple date columns using USERELATIONSHIP and CALCULATE
05Complex Data Modeling and Relationships
  • Handle many-to-many relationships using bridge tables
  • Use CROSSFILTER and USERELATIONSHIP to control relationship flow
  • Design flexible role-playing dimensions for multiple date types
  • Resolve ambiguity and circular references in complex models
  • Balance normalization and usability in star vs snowflake schemas
06Performance Optimization Techniques
  • Use DAX Studio to measure query performance and engine timings
  • Identify bottlenecks between the formula engine and storage engine
  • Refactor expensive functions and replace volatile logic
  • Optimize cardinality, filter chains, and data model design
  • Apply caching-aware DAX writing practices
07Advanced Filter Techniques & Virtual Tables
  • Use ALL, ALLEXCEPT, and VALUES for precise filter control
  • Build and debug virtual tables with SUMMARIZE, SELECTCOLUMNS, and ADDCOLUMNS
  • Implement TREATAS for dynamic joins and disconnected filtering
  • Manage multi-layered filters in nested CALCULATE scenarios
  • Visualize virtual table outputs using custom tables or DAX Studio
08Best Practices, Tips & Design Patterns
  • Apply naming conventions, formatting rules, and measure organization
  • Reuse patterns for dynamic segmentation, KPIs, and conditional formatting
  • Build dynamic titles, labels, and tooltips using context-aware DAX
  • Structure measures for easy maintenance and onboarding
  • Document and comment complex formulas for team collaboration
09Integrating DAX within the Power BI Ecosystem
  • Integrate DAX with Power Query, Excel Power Pivot, and Paginated Reports
  • Understand DAX limitations in DirectQuery and Hybrid models
  • Use DAX measures with R and Python visual outputs
  • Compare DAX vs M: when to calculate in the model or during load
  • Document and deploy DAX logic in scalable enterprise solutions