Forum Discussion
jsteffe
Helper III
6 years agoDifference between measure and calculated column
Hello, If I write this formula in a measure, I get the good result as it calculates the amount of sales for the next year. CALCULATE(SUM(Sales[amount]);NEXTYEAR('Calendar'[Date])) But if I put...
- 6 years ago
Hi jsteffe ,
It is because of the row context,you need to correct your expression as below:
CALCULATE(SUM(Sales[amount]),'Sales',NEXTYEAR('Calendar'[Date]))Best Regards,
KellyDid I answer your question? Mark my post as a solution!
v-kelly-msft
Community Support
6 years agoHi jsteffe ,
It is because of the row context,you need to correct your expression as below:
CALCULATE(SUM(Sales[amount]),'Sales',NEXTYEAR('Calendar'[Date]))
Best Regards,
Kelly
Kelly
Did I answer your question? Mark my post as a solution!