Forum Discussion
Anonymous
6 years agoNot applicable
Nextmonth calculation
Hi, This is my table.I just want to calculate Aug month total hours value. I used this measure Next month value = calculate(sum('table'[total hours value]),dateadd(table[month year],+1,mont...
- 6 years ago
Anonymous , This wrong usgaes. If you need just to diaply next month use this
next month = format(eomonth(today(),1),"MMM-YYYY")
Anonymous
6 years agoNot applicable
Hi
this is my actual problem.
Thanks
Kg
amitchandak
6 years agoSuper User
Anonymous , That is wrong, why are you using month year in dateadd function.
you need to use date. Same has been provided in all formulas
- Anonymous6 years agoNot applicable
Still same
- amitchandak6 years agoSuper User
Anonymous , This wrong usgaes. If you need just to diaply next month use this
next month = format(eomonth(today(),1),"MMM-YYYY")
- Anonymous6 years agoNot applicable
Amit,
Thanks a ton.
here is my solution.
NEXT MONTH = FORMAT(EOMONTH(TODAY(),1),"MMM YYYY")NEXT month HOURS = CALCULATE(SUM('Sales - Hours'[Total Hours Value]),FILTER('Sales - Hours','Sales - Hours'[Month Year]=DATEVALUE([NEXT MONTH])))Thanks again