Creating custom date filters in Tableau takes some creativity and ingenuity. They can be especially tricky when they are used to control both aggregated and non-aggregated measures. Tableau is particular about how aggregated formulas are written.
If you want to create a custom date filter in Tableau that controls both aggregated and non-aggregated measures but you're struggling to write the formulas without errors, check out this video for some helpful tips!