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
brockry1
Helper II
Helper II

Need to Sum by year using DAX

brockry1_0-1739203583789.png

I have data for 2024 and 2025 in the "Mars Year" column and need to sum the "Actual Tonnage" as a measure to sum total 2024 and total 2025.  I've tried a few calculations but it's not bringing back what I need.  Any suggestions would be helpful. 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@brockry1,

 

Try this measure:

 

Actual Tonnage 2024 and 2025 =
CALCULATE (
    SUM ( MyTable[Actual Tonnage] ),
    MyTable[Mars Year] IN { 2024, 2025 }
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@brockry1,

 

Try this measure:

 

Actual Tonnage 2024 and 2025 =
CALCULATE (
    SUM ( MyTable[Actual Tonnage] ),
    MyTable[Mars Year] IN { 2024, 2025 }
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.