I have a bunch of calculated measures which I understand are executed only at query time. Unlike the derived measures which are pre-aggregated during cube processing time and thereby giving a better query performance the calculated measures aren't pre-aggregated and hence have the potential for a bad performance.
Are there any tips or tricks to decrease the query time of calculated measures in SSAS cubes? I already created partitions on my measure groups and this helped in reducing the cube perofrmance time. But now I want to go a step further and reduce the query time for the calculated measures.
I hear something about aggregations and named sets that can help with this. But couldn't find anything online with a god tutorial on how to do this.
Updated:
Here are the calculated measures I'm currently using in my cube
[Total Activities] [Measures].[Day1] + [Measures].[Day2] + [Measures].[Day3]
[Total Days Engaged] IIF([Measures].[Day1] > 0 , 1, 0) + IIF([Measures].[Day2] > 0 , 1, 0) + IIF([Measures].[Day3] > 0 , 1, 0)
[Avg Days Engaged Per Users] IIF([Measures].[USER COUNT] = 0, 0 , [Measures].[Total Days Engaged]/[Measures].[USER COUNT])
[Avg Requests Per User] IIF([Measures].[USER COUNT] = 0, 0 ,[Measures].[Total Activities]/[Measures].[USER COUNT])
[Daily Engaged Users] SUM([Dim User].[Id].[Id], IIF([Measures].[Total Days Engaged] > 2, 1, 0))