Forum Discussion
Last date value
- 8 years ago
That is why it is important to post sample data to clarify. Try this:
Measure = VAR maxDate = MAX('Table'[Date]) RETURN MAXX(FILTER('Table',[Date]=maxDate),[Column])Something like that.
DavidB023 I didn't understand what you want, but have you tried to use the function LASTDATE()?
Anonymous
I would like to display a value which correspond to my last date value. So for exemple, my date are in month, today I want to see May value. (all of this without a slicer to choose date)
- Greg_Deckler8 years agoCommunity Champion
You should just be able to use MAX.
- DavidB0238 years agoHelper III
quentin_vigneAnonymousGreg_Deckler thanks for your answer !
In fact it concern squad data, so it would be easy like MAX if my enterprise just hire month after month ^^ but it is like :may 2018 500
avril 2018 450
march 2018 503So, today I want to display 500 on my repport..
- Greg_Deckler8 years agoCommunity Champion
That is why it is important to post sample data to clarify. Try this:
Measure = VAR maxDate = MAX('Table'[Date]) RETURN MAXX(FILTER('Table',[Date]=maxDate),[Column])Something like that.
- Anonymous8 years agoNot applicable
DavidB023 ok, maybe try = FORMAT(LASTDATE(TableName[Date].[Date]),"MMMM"), this formula returns the name of the month of the last date of the "Date" column you have.
- quentin_vigne8 years agoSolution Sage
Hi DavidB023
I think the simplest thing to do is to create a new measure
Last_Month = MAX(YourTable[Date].[Month])
- Quentin