Forum Discussion

JCK2's avatar
JCK2
Helper III
3 years ago
Solved

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...
  • FreemanZ's avatar
    3 years ago

    hi 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: