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
johnfa
Frequent Visitor

Get Total for Current Row Year

Hi All  

Thought this would be simple but ...... I am trying to write a DAX expression which returns the total of field Activity for the current row year derived from a Date column in table1 which joins to a Dates table. This expression just returns a total for all years ignoring the current Calendar Year any idea whats wrong ?

Current Year Activity = CALCULATE(SUM('table1'[Activity]), ALLEXCEPT(Dates, Dates[CalendarYear]))

Here is what it looks like in a table displayPbi.PNG

 


Any help appreciated
 


1 REPLY 1
Anonymous
Not applicable

Use sumx() instead of sum.

Sumx is an iterative function.

Thank,
Pravin

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.