Forum Discussion
diogobraga2
6 years agoHelper IV
Remove values after current date from previous years
The goal is to remove values after current date (most recent in this sample) from previous years for comparison purposes. Any insights?
JarroVGIT
6 years agoResident Rockstar
In the MAXX statement, you want to get the MonthDay from the ApplicationCount table.
diogobraga2
6 years agoHelper IV
Thanks so much. Still not working, but we are getting close.
This is the calculated field in effect:
Measure =
VAR maxCurrentYear = MAXX(FILTER(application_count, application_count[academic year] = "2019-2020"), application_count[MonthDay])
RETURN
IF(HASONEVALUE('Dates Adj'[Date]) && AVERAGE('Dates Adj'[MonthDay]) > maxCurrentYear,
BLANK(),
application_count[Total Apps])