Forum Discussion
New Measure Error for Current Year Sales
- 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 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)
- arneshabobo4 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."
- Anonymous4 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- arneshabobo4 years agoNew Member
Thanks so much for replying!
- smpa014 years ago
Community Champion
arneshabobo edited again, try now.
- arneshabobo4 years agoNew Member
That worked! Thanks so much for your swift response.