Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
AlanP514
Post Patron
Post Patron

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 select 2022, the title should show  "progress of 2022"
 note. if I didn't select any year the title should show the latest year: "progress of 2022"
If I select any other year the title should show based on the year "progress of 2021"



Thanks
Alan P James

1 ACCEPTED SOLUTION
AlanP514
Post Patron
Post Patron

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

View solution in original post

1 REPLY 1
AlanP514
Post Patron
Post Patron

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.