Forum Discussion

AlanP514's avatar
AlanP514
Post Patron
4 years ago
Solved

Selectedvalue Dynamic

Hai Guys Need your help I have a year slicer && I want to create a title if the year is not selected the title should show the latest year (2022) otherwise based on the year slicer For eg: If I sel...
  • AlanP514's avatar
    4 years ago
    Title =

    VAR _MaxYear = MAX ('Calendar'[Year] )
    Var _CurrentYear = YEAR(TODAY())
    Var _FinalYear = IF([_Is Year Filtered] = TRUE (),_MaxYear,_CurrentYear)
    var final = "Progress Towards Certifications " & " " & UPPER(_FinalYear)
    RETURN
    final