How do filter context and row context work in DAX, and when should you use CALCULATE()?
Filter context filters rows, row context evaluates each row, and CALCULATE switches row context to filter context for advanced filtering.
Data modeling, DAX time intelligence functions, context transition, and report optimization.
Topic Feed · PowerBI & DAX Measures
Filter context filters rows, row context evaluates each row, and CALCULATE switches row context to filter context for advanced filtering.
Efficient DAX time‑intelligence uses a proper date table, built‑in functions like TOTALYTD and SAMEPERIODLASTYEAR, and minimal filter removal.
Context transition converts row to filter context; avoid calculated columns because they run at refresh, inflate memory, and degrade performance.
Combine Power BI Performance Analyzer with DAX Studio Server Timings and Query Plan to locate and fix slow DAX measures.
Use a Field Parameter with a SWITCH‑based master measure to dynamically swap DAX calculations in Power BI reports.
Use a bridge table with inactive relationships and activate them via USERELATIONSHIP or TREATAS to safely handle many‑to‑many in Power BI.