I’m getting a very strange recursion error where I can’t seem to see where the recursion is. Here is some info on the test cube (the actual cube this is being developed in is extremely large)
The dimensions I’m using are:
- [Development Basis] : a dummy dimension used for filtering and scope control
- [Development Date] (Date) : a role-playing time dimension tied to the fact table on dateid1
- [Effective Date] (Date) : a role-playing time dimension tied to the fact table on dateid2
- [Development Period] : a dummy dimension that would normally be used for scope calculation control.
There is a single fact table with a single Measure [Paid Amt]
When I use the following Scope, I get an accurate result:
SCOPE([Development Basis].[Development Basis].[Incremental],
[Development Periods].[Development Period].members);
THIS=AGGREGATE([Development Date].[Month].[201201]
,[Measures].[Paid Amt]);
ENDSCOPE;
However, when I modify it slightly to use a date range in the scope, I get the recursion error
SCOPE([Development Basis].[Development Basis].[Incremental],
[Development Periods].[Development Period].members);
THIS=AGGREGATE({[Development Date].[Month].[201201]
:[Development Date].[Month].[201203]}
,[Measures].[Paid Amt]);
ENDSCOPE;
Here is the MDX query used.
SELECT [Development Periods].[Development Period].[DevelopmentPeriod1]ONCOLUMNS ,
[Effective Date].[Time].[Quarter].[Q3 2011]ONROWS
FROM [My_Cube]
WHERE ([Development Basis].[Development Basis].[Incremental])
And the error with the second scope statement: Infinite recursion detected. The loop of dependencies is: 2 -> 2
This is the only scope statement in the test (the original cube it happened in had over 1000 lines in the CALCULATE so I reduced it down to the smallest possible test cube dimension & scope wise.) In the full cube we are using, there are many more complexities that have led us to this code. Mainly I really just need to know where the recursion is so I can code around it.
Any help identifying where the recursion is would be appreciated.