Forum Discussion
Anonymous
6 years agoNot applicable
MAX Date filter
Good Day, I have an issue where a DAX formula is not ouputting correctly. Essentially I wrote formulas to calculate the value difference of items from a previous month, which ouputs correctly. Now I...
amitchandak
Super User
6 years agoAnonymous , Try like
measure =
VAR CurrentYearMonth = MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link])
Return
IF(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
Anonymous
6 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 ?