I have many years of data ingested into a Tableau workbook. I have dropped the [Date] pill into the "Filters" pane. When I edit the filter, I would like to apply the condition where I filter to the October of the most recent year.
Since the filter requires a Boolean, I have tried various combinations of
DATEPART('month',[Date]) = 10 AND DATEPART('year', MAX([Date]))
But I can't seem to get around mixing the max aggregation. I have tried wrapping the Max function with ATTR DATEPART('year', ATTR(MAX([Date]))
, but this doesn't seem work in the Filter>By formula (ATTR is not recognized). Wrapping the max function with {}, I get the error "The formula must be an aggregate calculation or refer only to this field.