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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.