Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Most Recent Transaction Per Store

The goal is to flag only the most recent transaction per store. My current output will flag the most recent transaction for each unique transaction. The requirements changed and I need to flag only t...
  • smpa01's avatar
    smpa01
    5 years ago

    @win_anthony

    Measure 2 = IF (
        CALCULATE (
            MAX ( 'Table'[Date] ),
            FILTER (
                VALUES ( 'Table'[Date] ),
                'Table'[Date] = CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[store]))
            )
        )
            <> BLANK (),
        "latest"
    )

    Capture.PNG