DAX calculations change depending on how the context is set. There are three types of context: Row, query and filter context. (View Highlight)
Filter context is the set of values allowed in each column, or in the values retrieved from a related table. It can be applied through arguments in a formula or by using report filters on row and column headings. This context applies on top of query and row context, meaning its effects are last. (View Highlight)
Query context refers to the subset of data returned by a formula, which can be changed by slicers, page filters, table columns, row headers, and interactions with visualizations. It applies on top of row context (View Highlight)
Row context is the simplest and evaluates at the row level. It includes the all values in the current row; therefore DAX formulas for calculated columns evaluate at the row context. (View Highlight)