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

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

Reply
Anonymous
Not applicable

Custom filtering table based on a slicer value

I need to show [FTE] measure only for the current and previous year.

this is not working since it only shows the current year.

FTE_WL1 =
Var prev_yr = MAX('Date'[Year])-1
RETURN CALCULATE([FTE],FILTER(ALL('Date'[Year]),'Date'[Year]>=prev_yr))
Capturex.PNG

 any help is appreciated, thank you.

2 REPLIES 2
MattAllington
Community Champion
Community Champion

Well this will calculate the fte for 2 years combined. If you want both years separated, then use 2 measures. 

 

Fte

and the new one but change >= to be =



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

thanks, is there a way to show both years in the same graph using a single measure. 

Capturex.PNG

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Kudoed Authors