Forum Discussion
JCK2
3 years agoHelper III
Get latest value based on max date
Hello!!! I want to get the latest target based on the latest date and for the date format has time also, so basically the latest value based on max date and time. The expeted output of this i...
philouduv
3 years agoResolver III
Hello JCK2 ,
If you only want the target create this measure to give you the last value of target:
If you also want the latest date associated create an other measure like this
Hope it helps you
- Walt10101 year agoHelper V
This (the Related Target calc) looks very promising, but when I try it I get the error "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
Its confusing becasue the condition in my case definitely can only be satisfied by a single Date, and hence a single related value. I tried dividing it and first retreieving the latest data using LASTDATE, and then using that date to get the value, and it seemed to work.