Forum Discussion

Voose's avatar
Voose
Helper III
9 years ago
Solved

Pulling back a max date through

Hi All,   Bit confused on this one and apsologies if my explanation is lacking but here goes.   I have an object (LIC) that holds my information and I want to pull the highest of the dates associ...
  • v-ljerr-msft's avatar
    v-ljerr-msft
    9 years ago

    Hi Voose,

     

    Could you try the formula below to see if it works in your scenario? :smileyhappy:

    Amount =
    VAR latestDate =
        CALCULATE (
            MAX ( 'Service Contract Line'[Original_End_Date__c] ),
            ALLEXCEPT ( 'Licence Schedule', 'Licence Schedule'[Licence Name] )
        )
    RETURN
        CALCULATE (
            SUM ( [Amount] ),
            'Service Contract Line'[Original_End_Date__c] = latestDate
        )
    

     

    Regards