Forum Discussion
Time Date Measures
- 8 years ago
In this scenario, when you filter on Period or Week, the filter context will change to a Period or Week, that's the reason why you YTD measure will return the Period-to-Date or Week-to-Date value. For your requirement, you should add ALL() in your FILTER() to ignore the selection from filter/slicer.
Collisions Year =
VAR currentDay =
MAX ( 'dates'[date] )
RETURN
CALCULATE (
[Total Collisions],
FILTER (
ALL('dates'),
'dates'[date] >= [Start Day of Year]
&& 'dates'[date] <= currentDay
)
)Regards,
In this scenario, when you filter on Period or Week, the filter context will change to a Period or Week, that's the reason why you YTD measure will return the Period-to-Date or Week-to-Date value. For your requirement, you should add ALL() in your FILTER() to ignore the selection from filter/slicer.
Collisions Year =
VAR currentDay =
MAX ( 'dates'[date] )
RETURN
CALCULATE (
[Total Collisions],
FILTER (
ALL('dates'),
'dates'[date] >= [Start Day of Year]
&& 'dates'[date] <= currentDay
)
)
Regards,