A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
With the query covering 16 measures detailed by 25 hierarchies from 5 dimensions, there's not too much potential of speeding things up, and those StrToSet calls in subselect clauses do not help either. SSAS MD cubes have never been designed for the task of returning a huge spreadsheet of data, and the performance observed with this query is but natural. Whatever your original problem was, you should try looking for solutions other than torturing a cube with such queries. E.g., your parameters in subselects hint at SSRS, so you could look for SSRS-based solutions.
Returning to MDX, you could try replacing individual attribute hierarchies in the crossjoin with member properties for another attribute you query from the same dimension, and you could create an aggregation covering this subset of the cube's space.