Forum Discussion

Daretoexplore's avatar
Daretoexplore
Icon for Advocate I rankAdvocate I
1 year ago
Solved

Most recent entry for a person

Hi all   I have some data which is customer and transaction based, like this.   CustID.         TransactionDate.         Amt 12345.          1/12/24.                      £32.45 12678.         ...
  • johnt75's avatar
    1 year ago

    You could create a column like

    Is Latest Date =
    VAR LatestDate =
        CALCULATE (
            MAX ( 'Table'[Transaction Date] ),
            ALLEXCEPT ( 'Table', 'Table'[Customer ID] )
        )
    VAR Result =
        IF ( LatestDate = 'Table'[Transaction Date], 1 )
    RETURN
        Result