Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Help with most recent value

Hello,

I am trying to select the most recent value for gallons from the test table. I keep ending up with the max value instead of grabbing the most recent gallons value. I have tried a couple of things with the same results

 

ANY(
SELECT(
Test[Gallons],
(
[_ROWNUMBER] = MAX(
SELECT(
Test[_ROWNUMBER],
([_THISROW].[Test ID] = [Test ID])
)
)
)
)
)

 

 

 

also tried 

 

IF(MAX([Related Test][Date]) = True,MAX([Related Tests][Gallons),"")

0 2 70
2 REPLIES 2
Top Labels in this Space