I am trying to automate my dashboard as efficient as possible. For that i need my slicer to automatically select this month and the previous month.
Currently it manually updates by a different macro for every month, which deselects everything except the months in scope.

Doing it this way gives the dashboard performance issues. It doesn't matter if it works with formulas or VBA.
Are there any solutions for this?