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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
72_tam
Regular Visitor

need help with limiting date range

I have a dashboard with work orders that are scheduled, closed and a running total by fiscal year...a 10 year trend.  How can I limit the trend to only show me scheduled work to current fiscal year and previous 10?  Right now, it's showing scheduled work orders way out in the future.  Is there a formula to show ONLY scheduled and closed for the last 10 fiscal years?  Help needed!

 

72_tam_0-1713981935484.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @72_tam ,

I created some data:

vyangliumsft_0-1714025770803.png

Here are the steps you can follow:

1. Create measure.

Flag =
var _today=TODAY()
return
IF(
    MAX('Table'[Date].[Year])>=YEAR(_today)-10&& MAX('Table'[Date].[Year])<=YEAR(_today),1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1714025770804.png

3. Result:

vyangliumsft_2-1714025805702.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @72_tam ,

I created some data:

vyangliumsft_0-1714025770803.png

Here are the steps you can follow:

1. Create measure.

Flag =
var _today=TODAY()
return
IF(
    MAX('Table'[Date].[Year])>=YEAR(_today)-10&& MAX('Table'[Date].[Year])<=YEAR(_today),1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1714025770804.png

3. Result:

vyangliumsft_2-1714025805702.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

72_tam
Regular Visitor

This is how I clculated running total 

 

Running Total in FY = CALCULATE([Difference], FILTER(ALLSELECTED(Append1[Year]), ISONORAFTER([Year], MAX([Year]), DESC)))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.