Forum Discussion
cmccully
Helper I
7 years agoFind a value associated with the latest date
I have a list of mileage reads and want to get the reading associated with the latest mileage date. Because mileages are sometimes corrected I cannot simply grab the highest mileage reading beca...
- 7 years ago
Hi,
This measure works
Measure = CALCULATE(SUM('Sheet 1'[METER]),LASTDATE('Sheet 1'[METER_DATE]))Hope this helps.
Anonymous
2 years agoNot applicable
Hello there, nice, it worked on my side as well. One question... why can't I substitute the lastdate() with min() or max()?
Ashish_Mathur
Super User
2 years agoYou are welcome. The LASTDATE() function returns a table of 1 row and 1 column whereas the MAX() function returns a single scalar value.