Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |