Forum Discussion
Nextmonth calculation
- 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")
Hi Anonymous ,
Create a measure as follows:
Thanks Pragati..its not working
- Pragati116 years ago
Super User
Hi Anonymous ,
Your comment - Not working doesn't give me any insight on what is wrong with it.
Always helpful to have some screesnhot with error.
Thanks,
Pragati
- Anonymous6 years agoNot applicable
Its still showing July values not aug values
- amitchandak6 years ago
Super User
Anonymous , Few things.
1) Your data table should be marked as a date table.
2. Hope Jul 2020 is the month on the page. If not then time intelligence will pick up last month of the calendar
- Anonymous6 years agoNot applicable
Can you help me to calculate the next month measure alone.
ans should be "Aug 2020".
i tried Next month = month(today()+1)
the ans was "8"..but i need Aug 2020
Thanks
Kg
- Pragati116 years ago
Super User
Hi Anonymous ,
You can use following measure to get next month value:
Next month = DATEADD(ClothingSales[Date], 1, MONTH)Replace ClothingSales[Date] in above dax with your date column.Also, please try tagging people you are trying to respond from next time.Thanks,Pragati- Anonymous6 years agoNot applicable
Hi
this is my actual problem.
Thanks
Kg
- FarhanAhmed6 years ago
Community Champion
You cannot use DateAdd with Measure....
You need to create calculated column to get the next month Value.
Create a new Table name it "Date" using "CalendarAuto()"
Now Join this date with your Table (MonthYear and Date)
Mark this new date table as "Date Table"
Create measure to calculate next month value
Next month value = calculate(sum('table'[total hours value]),DATESINPERIOD(DimDate[Date],MAX(DimDate[Date]),1,MONTH))