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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
amandabus21
Helper V
Helper V

Years past data

How can I get the total of a previous year on an automated basis? 

 

Im looking to have  report that is always displayin gall of last years data, on an automated basis.

For example show all of last year 2022 and change every time the year changes.

 

The data for this is a measure [Accidents per 100k Miles] and Date is ''Datamart AccidentSummary'[Merged FC]

2 REPLIES 2
FreemanZ
Super User
Super User

hi @amandabus21 

try like:

Measure =
CALCULATE(
    [Accidents per 100k Miles],
    YEAR('Datamart AccidentSummary'[Merged FC]) = YEAR( MAX('Datamart AccidentSummary'[Merged FC]))-1
)

This givs me a total of all not the specific year. I need a display of this year and last year.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.