Forum Discussion
MAX Date filter
Anonymous , Not checked your file. But you can have measure like ?
measure =
var _max = maxx(allselected(Date), Date[Date])
return
calculate([Value measure], filter(Date,Date[Date]= _max))
- Anonymous6 years agoNot applicable
Hi amitchandak,
Slightly confused on the [Value measure] syntax - is that self-referencing ?
I tried to do it this way to get my latest month to run a filter but it does not work.
Latest Month =VAR CurrentYearMonth =MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link])Return IF(max('tertiary vw_insights_ageing_profile'[Date Link]) = CurrentYearMonth,1,0)- amitchandak6 years ago
Super User
Anonymous , Try like
measure =
VAR CurrentYearMonth = MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link])
ReturnIF(format(max('tertiary vw_insights_ageing_profile'[Date Link]),"YYYYMM") = format(CurrentYearMonth,"YYYYMM"),1,0)
You can use today() in place of MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link]) , if needed
- Anonymous6 years agoNot applicable
I've written it exactly as you typed and it is unfortuantely still not working.
Perhaps the attached PBI file might be of some use ?