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! Request now

Reply
amandabus21
Helper V
Helper V

Year Total

How can I get a year total of my meausre.  As in I always want the whole total of the current year.

Measure is =Accidents Per 100K Miles

 

Date: 

'Datamart AccidentSummary'[Merged FC])
 
So a total of 2023 that keeps updating as the year goes on.
 
And a previous total of 2022. 
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @amandabus21 

try like:

YearTotal=
CALCULATE(
    [Accidents Per 100K Miles],
    YEAR('Datamart AccidentSummary'[Merged FC])=YEAR(TODAY())
)
 
LasrYearTotal=
CALCULATE(
[Accidents Per 100K Miles],
YEAR('Datamart AccidentSummary'[Merged FC])=YEAR(TODAY())-1
)

View solution in original post

4 REPLIES 4
amandabus21
Helper V
Helper V

nevermind had the wrong filters!

FreemanZ
Super User
Super User

hi @amandabus21 

try like:

YearTotal=
CALCULATE(
    [Accidents Per 100K Miles],
    YEAR('Datamart AccidentSummary'[Merged FC])=YEAR(TODAY())
)
 
LasrYearTotal=
CALCULATE(
[Accidents Per 100K Miles],
YEAR('Datamart AccidentSummary'[Merged FC])=YEAR(TODAY())-1
)

Hi ,

First measure: 

 

this gives me total of last month.  (Dec = .91)

 

I need whole year  (1.07)

 

amandabus21_0-1678385188731.png

 

aha, then try like:

YearTotal=
CALCULATE(
    [Accidents Per 100K Miles],
    FILTER(
        ALL('Datamart AccidentSummary'),
    YEAR('Datamart AccidentSummary'[Merged FC])=YEAR(TODAY()))
)
 
LasrYearTotal=
CALCULATE(
[Accidents Per 100K Miles],
FILTER(
        ALL('Datamart AccidentSummary'),
YEAR('Datamart AccidentSummary'[Merged FC])=YEAR(TODAY())-1)
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.