Forum Discussion
JCK2
Helper III
3 years agoGet 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...
FreemanZ
Super User
3 years agohi JCK2
try to plot a visual table with a measure of this:
Target2 =
VAR _value = MAXX(TableName, TableName[ModifiedDate])
RETURN
MAXX(
FILTER(TableName, TableName[ModifiedDate] =_value),
TableName[Target]
)
i tried and it worked like this:
the dataset:
FreemanZ
Super User
3 years agoit can be further simplified like this:
Target3 =
VAR _value = MAX(TableName[ModifiedDate])
RETURN
MAXX(
FILTER(TableName, TableName[ModifiedDate] =_value),
TableName[Target]
)