Speed Issues in Financial matrix - Follow on from solved issue on variables

An image of your data model is helpful for advice. Switch statements used for Financial reporting is inherently slow to be honest especially given the length of your template.

I would check your measures to ensure there are efficiently calculating.

Marco has good info on this https://www.sqlbi.com/articles/optimizing-dax-expressions-involving-multiple-measures/