Forum Discussion
phamilton
8 years agoFrequent Visitor
Calculate YTD Goal based on current month
I have a goals table for my team which has a monthly goal per user. I need a way to show the goal YTD in a report so that I can compare it to the actuals. Currently I have a goals table in my da...
- 8 years ago
Yes it is the sum of all the goals up to the current date. I have actually found the solution.
Using the following IF statement in the measure did the trick. Thanks to Sam McKay at EnterpriseDNA for the solution.
IF (LASTDATE(Dates[Date]) > TODAY(), BLANK(), CALCULATE([Total Goal], DATESYTD(Dates[Date])))
msornakumar
Advocate III
8 years agoHi ,
How to calcuate the goal YTD ? Is it SUM of the goals till current month or How it needs to be calculated ?
- phamilton8 years agoFrequent Visitor
Yes it is the sum of all the goals up to the current date. I have actually found the solution.
Using the following IF statement in the measure did the trick. Thanks to Sam McKay at EnterpriseDNA for the solution.
IF (LASTDATE(Dates[Date]) > TODAY(), BLANK(), CALCULATE([Total Goal], DATESYTD(Dates[Date])))