Forum Discussion
Anonymous
9 years agoNot applicable
Trying to sum full year but getting error message
I have the years selected on a slicer and it am trying to sum full year budget using full year = CALCULATE(SUM(Budgets[amount]),'Calendar$'[Date].[Year]) but I am receiving this error message. ...
Anonymous
9 years agoNot applicable
Anyone?
Sean
Community Champion
9 years agoFull Year 2016 =
CALCULATE (
SUM ( Budgets[Amount] ),
FILTER ( ALL ( 'Calendar$' ), 'Calendar$'[Date].[Year] = 2016 )
)So if your Slicer is from the Calendar table use the above!
If not this should work either way...
Full Year 2016 ALT =
CALCULATE (
SUM ( Budgets[Amount] ),
FILTER ( ALL ( 'Budgets' ), 'Budgets'[budget_code] = 2016 )
)
- Anonymous9 years agoNot applicable
Thanks Sean, will give that a try, take it there is no way to get it to say 2016 automatically?