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)
arneshabobo
4 years agoNew Member
Hi! Thank you for responding. I added the parenthesis but now the error says " too many arguments were passed to the SUM function. The maximum argument count for the function is 1."
smpa01
Community Champion
4 years agoarneshabobo edited again, try now.
- arneshabobo4 years agoNew Member
That worked! Thanks so much for your swift response.