Forum Discussion
moesteez
5 years agoHelper I
Variables 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
5 years agoSuper User
moesteez , 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 agoHelper I
Thanks amitchandak , but this also returns a blank value for me. Im not sure why because in theory this should work