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.
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.
Every measure has an implicit CALCULATE that you can’t see, so measures always trigger context transition from within a row context.
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |