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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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