Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
Solved! Go to Solution.
Hi @Anonymous
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/
Hi @Anonymous
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/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
55 | |
37 | |
31 |
User | Count |
---|---|
89 | |
62 | |
61 | |
49 | |
45 |