cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
beekee Regular Visitor
Regular Visitor

Difference between Calculate and Sum

Hi all, 

 

As I am exploring DAX, I wonder if there is a difference between Calculate and Sum in DAX.

 

Hope to receive guidance from yall.

 

Cheers!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Difference between Calculate and Sum

Hi @beekee

 

I think it is best explained in this blog post below by PowerPivotPro.

 

What a SUM does is it will SUM the values to give you a total.

What CALCULATE will do is give you the ability to change the filter context of your measure. And this is where you can do some amazing things with CALCULATE like YTD, Prior YTD etc using CALCULATE.

 

https://powerpivotpro.com/2014/10/sum-sumx-or-calculatechoices-choices/


Did I answer your question? Mark my post as a solution!
"Proud to be a Datanaut!"
Power BI Blog

View solution in original post

1 REPLY 1
Super User
Super User

Re: Difference between Calculate and Sum

Hi @beekee

 

I think it is best explained in this blog post below by PowerPivotPro.

 

What a SUM does is it will SUM the values to give you a total.

What CALCULATE will do is give you the ability to change the filter context of your measure. And this is where you can do some amazing things with CALCULATE like YTD, Prior YTD etc using CALCULATE.

 

https://powerpivotpro.com/2014/10/sum-sumx-or-calculatechoices-choices/


Did I answer your question? Mark my post as a solution!
"Proud to be a Datanaut!"
Power BI Blog

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 48 members 993 guests
Please welcome our newest community members: