Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Identify max value in a column

I would like to create a custom column that returns the text " Latest Year" in any row where the year contains the max value.      Status Year Budget 2024 Budget 2023 Budget 2022 ...
  • Fowmy's avatar
    Fowmy
    2 years ago

    Anonymous 
    Yes you can:

    IF (
        Tablename[Year] = 
        CALCULATE(
            MAX( Tablename[Year] ),
             ALLEXCEPT( Tablename, Tablename[Status] )
        ), 
        "Latest Year"
    )