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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.