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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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