Forum Discussion
arneshabobo
4 years agoNew Member
New Measure Error for Current Year Sales
Hi everyone. I'm working on a new measure for current year sales. I received the following error: The syntax for 'RETURN' is incorrect. (DAX(Var CY = MAX('Date Dim'[Year]RETURNCALCULATE(SUM...
- 4 years ago
arneshabobo try this, You missed the closing Parenthesis in VAR CY
CY Sales =
Var CY = MAX('Date Dim'[Year])
RETURN
CALCULATE(SUM(Actuals[Sales Amount]),'Date Dim'[Year]=CY)
Anonymous
4 years agoNot applicable
HI arneshabobo
You missed the closing paranthesis for the SUM function too, pls close it, it should work.
CALCULATE(SUM(Actuals[Sales Amount]) ,'Date Dim'[Year]=CY)
Thanks
Raj
arneshabobo
4 years agoNew Member
Thanks so much for replying!