Hi All,
My question is continuation from my previous question.
I have to create two measures based on Startdate and Enddate selected from user. One is sum of last 90 days from startdate and other is sum of next 90 days from enddate. Apart from this, there are three other dimensions when I query any two of them the result set performance is nod bad, but when I pull the other dimension it takes for ever. BTW, the data is very small. Below is the code for those two measures.
Can anyone please suggest how to improve this performance or let me know any better way of calculating this.
[Last 90days] = SUM(NonEmptyCrossJoin( {[Start Date].[Date].CurrentMember.Lag(90):[Start Date].[Date].CurrentMember},[End Date].[Date] ) ,[Measures].[Amount])
[Next 90days] = SUM(NonEmptyCrossJoin ({[End Date].[Date].CurrentMember:[End Date].[Date].CurrentMember.Lead(90)} ,[Start Date].[Date]) ,[Measures].[Amount])
My original Post
http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/56efc786-5456-493a-a33c-5cd87e0c88abThanks
Tinku