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)
smpa01
Community Champion
4 years agoarneshabobo edited again, try now.
arneshabobo
4 years agoNew Member
That worked! Thanks so much for your swift response.