Returning the last value based on a condition seems like a difficult problem to solve unless you try one of these easy-to-implement solutions. No one wants to jump through hoops to get the job done, ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results