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?
diogobraga2
6 years agoHelper IV
JarroVGIT thanks for the prompt reply. For the date fields in the calcuation, do I have to use the Calendar table? Right now I am, and I am getting the error message below. What do you think is going on?
JarroVGIT
6 years agoResident Rockstar
In the MAXX statement, you want to get the MonthDay from the ApplicationCount table.
- diogobraga26 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])