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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
admin11
Memorable Member
Memorable Member

Show Last 3 Yr = IF ('DATE'[Year] >= Year(TODAY()) - 3, 1, 0) How to remove 2022 data ?

Hi All

 
I have below expression work fine :-
 
Show Last 3 Yr = IF ('DATE'[Year] >= Year(TODAY()) - 3, 1, 0)
 
it will display 2019 , 2020 , 2021 , 2022 data.
 
May i know that how to modify the above expression , so that it will not display year 2022 Jan and Feb data.
 
Paul
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@admin11 , Try like

 

Show Last 3 Yr = IF ('DATE'[Year] >= Year(TODAY()) - 3 && 'DATE'[Year] <= Year(TODAY())-1 , 1, 0)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@admin11 , Try like

 

Show Last 3 Yr = IF ('DATE'[Year] >= Year(TODAY()) - 3 && 'DATE'[Year] <= Year(TODAY())-1 , 1, 0)

@amitchandak 

Thank you very much.

 

I notice that you not only know PBI you also know taboure .As i see you create many you tube,

 

Paul

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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