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

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

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
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.