![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Is the [portvalue adjusted] measure calculated in some fashion and, if so, does it refer to the current member of the [Currency] dimension - which would cause recursion? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
|
Is the [portvalue adjusted] measure calculated in some fashion and, if so, does it refer to the current member of the [Currency] dimension - which would cause recursion? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#5
| ||||||
| ||||||
|
| With Member [Customers].[TestRecursion] as |
| With Member [Customers].[TestRecursion] as |
| With Member [Currency].[gbp3] as |
#6
| |||
| |||
|
|
Hi Pat, Based on your clarification, I think that I've reproduced a similar recursion error for the Foodmart [Warehouse and Sales] cube (assuming that your Currency dimension doesn't directly apply to your 'main' cube data): With Member [Customers].[TestRecursion] as '[Measures].[Warehouse Sales]' Select {[Store].[All Stores].[USA].[CA]} on 0, {[Customers].[TestRecursion]} on 1 from [Warehouse and Sales] where [Time].[1997] The recursion error occurs here because the [Customers] context member: [TestRecursion] causes the measure: [Warehouse Sales] to be evaluated in the current context. This causes [TestRecursion] to be invoked again, and so on. Here, the recursion can be avoided by wrapping [Warehouse Sales] in ValidMeasure(). This eliminates the [Customers] dimension from its evaluation, since the main [Warehouse] cube itself does not include [Customers]: With Member [Customers].[TestRecursion] as 'ValidMeasure([Measures].[Warehouse Sales])' If the [Currency] dimension does directly apply to [portvalue adjusted], then explicitly specify the desired context for [Currency] in [Measures].[gbp3], like: With Member [Currency].[gbp3] as '([Measures].[portvalue adjusted], [Currency].[All Currency]) /[Measures].[rategbp]' - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |