| 1. |
How Does Calculate() Result In Context Transition? |
|
Answer» When in row context it transitions to filter context: the filter on the rows of a specific table propagates through the relationship to the RELATED before the calculation is completed. E.g. CALCULATE(SUM(OtherTable[column]) in a calculated column. It extends or modifies an EXISTING filter context, by adding a filter as its second parameter. CALCULATE() ALWAYS introduces filter context. When in row context it transitions to filter context: the filter on the rows of a specific table propagates through the relationship to the related before the calculation is completed. E.g. CALCULATE(SUM(OtherTable[column]) in a calculated column. It extends or modifies an existing filter context, by adding a filter as its second parameter. CALCULATE() always introduces filter context. |
|