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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
souvik900766
Helper IV
Helper IV

Show Year of Previous to Previous Year from the current selected year

Hi ,

I want display the Previous to Previous Year from the current selected year.
For e.g.:-
if my current selected year is 2020 then it should display 2018.
for 1 prior yaer it is working like selectedvalue(year)-1 but If i am doing selectedvalue(year)-2 it is giving the result of PY i.e selectedvalue(year)-1

Thanks in advance !


1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @souvik900766 

 

That 

PPY = SELECTEDVALUE('Table (2)'[Year])-2
should work well to find the 2 years before the selected date.
 VahidDM_1-1630570234518.gif

 

 What is the type of your Year column? can you share a sample of your data here (Not a screenshot)?
 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1630570222805.png !!

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @souvik900766 

 

That 

PPY = SELECTEDVALUE('Table (2)'[Year])-2
should work well to find the 2 years before the selected date.
 VahidDM_1-1630570234518.gif

 

 What is the type of your Year column? can you share a sample of your data here (Not a screenshot)?
 

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1630570222805.png !!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.