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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
abeirne
Helper II
Helper II

Selectedvalue of year - 1

Hi all, I am trying to show the year prior to the selected year. 

SELECTEDVALUE(CalendarQ[Year])-1 & " " & "Golf Rev"

I use this measure in a textbox for a tooltip. 
This measure works for next year but not the current year. Any thoughts on how to fix this? Thanks.

 

 

1 ACCEPTED SOLUTION
abeirne
Helper II
Helper II

IF(
    DISTINCTCOUNT(CalendarQ[Year]) > 1,
    YEAR(TODAY()) - 1  & " Golf Rev",
    SELECTEDVALUE(CalendarQ[Year]) - 1 & " Golf Rev"
)
I used this measure and it worked

View solution in original post

2 REPLIES 2
abeirne
Helper II
Helper II

IF(
    DISTINCTCOUNT(CalendarQ[Year]) > 1,
    YEAR(TODAY()) - 1  & " Golf Rev",
    SELECTEDVALUE(CalendarQ[Year]) - 1 & " Golf Rev"
)
I used this measure and it worked
FreemanZ
Super User
Super User

Hi @abeirne 

do you have 2021? could it be filtered out unintentionally by filters like slicer, filter pane, or other visuals?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.