Forum Discussion
Calculate and filter context
- 3 years ago
So I found the solution. The solution is off course crazy becasue there is no clear information about this almost nowhere. Seems that DAX is real hell. So...as far as I understand:
If someone uses calculate with [date] column and:-[date] column is a connector to other tables OR
-if table is "marked as date table" (when a date table is connected with other table but by other column ie. DateKey)
=> the ALL('date table") is added to the formula. This happend in the background (and of course almost no one knows it and you will not see it). Congrats for DAX developers.
hi Zx2000
It is because a filter arugment inside a CALCULATE can overwrite outer fitlering context of a measure. In case of conflict, the filter argument prevails.
Nope. It is wrong. They overwrite filter when filtering the same column. There is no confilct here. There is a outer filter context (year - month) and new context (single date). In normal case it should be combined.