Forum Discussion
moesteez
Helper I
5 years agoVariables in the date function
Hi all, Im trying to pass a date into a calculated dax measure but for some reason Im getting a blank value everytime. This is what I have so far: VAR year = YEAR(FIRSTDATE('Calendar 2'[...
amitchandak
Super User
5 years agomoesteez , Can you try the min date?
Measure =
VAR _min = Minx(allselected('Calendar 2'), 'Calendar 2'[Date]))
return
CALCULATE([Quantity], filter('Calendar', 'Calendar'[Date] = _min ))
- moesteez5 years ago
Helper I
Thanks amitchandak , but this also returns a blank value for me. Im not sure why because in theory this should work