- Filter context is contextual data that can be filtered by. This can be a column of values in a data model (filter context) or a category in a visual (visual filter context)
- Row context creation (iteration) means that Power BI will no longer calculate the total or max of a single column but will now calculate its expression per row. It then overlays an overarching base expression, such as SUM, on top of this outcome. By calculating per row (iteration) instead of applying a calculation to one column, filter context is included. Even where no filter context was present in the first place.
- Filter context creation means that Power BI opens the possibility to modify and/or filter already existing filter context (such as a category in a visual).
The CALCULATE expression is perhaps the most important expression in the DAX library. The CALCULATE expression can be used to modify existing filter context or to add new filter context.
In the example below, the base expression SUM was initially used. The expression SUM takes one column and calculates the total. Filter context is not indicated unless this is visually specified as in the image below.
To be able to modify the table below, for example you want to see the total for all customers, you only want to see customer A, or you want to use a different contact than the already existing contact, then filter context must be added or adjusted. This can be done by placing CALCULATE in front of the SUM. In addition to the ‘expression’ option such as SUM, the ‘filter’ option is then created. With the ‘filter’ option, the filter context can be adjusted and added.


