Modify DAX filter context in Power BI Desktop models


Summary

CALCULATE DAX function to modify filter context in the formulas. The syntax for the CALCULATE function is as follows:

CALCULATE(<expression>, [[<filter1>], <filter2>]…)

I learned about filter context. And also learned why and how to work with the CALCULATE function to modify filter context by passing in filters. These filters can add or overwrite the filter context, and they can modify filter context when we are passing in special functions like REMOVEFILTERS or KEEPFILTERS. Additionally, I learned that the CALCULATE function can transition row context to filter context, which can be required when we are using measure expressions in calculated columns or iterator functions.

Comments

Popular posts from this blog

Use DAX iterator functions in Power BI Desktop models

Different charts in Power BI