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
Anonymous
Not applicable

Calculate value for total year

Hello experts,

I want to calculate value for total year. In my data, I have value for year 2019-2023. 

The measure that i want to do is like below: 

 

var totalData = calculate(sum(table[value]), ALL(table[Year]))
return totalData
 
but this measure does not works.. 
 
Really need your help on this. 
 
Thanks & Regards,
Izzaty
1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could try it.

Measure = 
CALCULATE(SUM('table'[value]),ALLEXCEPT('table','table'[Year]))

the final show:

vyalanwumsft_0-1669356893835.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could try it.

Measure = 
CALCULATE(SUM('table'[value]),ALLEXCEPT('table','table'[Year]))

the final show:

vyalanwumsft_0-1669356893835.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Try like

 

calculate(sum(table[value]),all())

 

or

 

calculate(sum(table[value]),all(Table))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors
Top Kudoed Authors