cancel
Showing results for
Did you mean:
Highlighted
Resolver II

## Total difference in sumx and calculate function

Hello

I have written 2 measures:

qty 3 calculate = CALCULATE([total sales],FILTER('Sales table','Sales table'[QTY]=3))

THis gives total = 37404

sumx for qty equal to 3 = SUMX(FILTER('Sales table','Sales table'[QTY]=3),[total sales])

This gives total = 40236

But if i write the following fucntion the answer is right:

sumx for qty equal to 3 = SUMX(FILTER('Sales table','Sales table'[QTY]=3),[total sales])

Please help me to understand the logic, why sumx function gives different result when i write measure but when i write the formula it gives the correct answer.

2 REPLIES 2
Highlighted
Community Support

Every measure has an implicit CALCULATE that you can’t see, so measures always trigger context transition from within a row context.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Resolver II
Can you pls simplify the explaination?

Announcements

#### Power Platform Community Conference

Check out the on demand sessions that are available now!

#### Microsoft Power Platform Communities

Check out the Winners!

#### Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors