dbTalk Databases Forums  

MDX infinite recursion problem

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX infinite recursion problem in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MurthyJ
 
Posts: n/a

Default MDX infinite recursion problem - 11-15-2004 , 11:07 AM






I need some advice on preventing infinite recursion in the following example:

I have a product dimension with three levels

All Product
Product Category
Product Group

A calculated measure Commission Per Trade is valid only for a) All level, b)
Product Category = Commission, c) All descendants of Commission product
category. Otherwise it is NULL.

I have a formula like this:

MEMBER [Measures].[rpt] as
'iif ([Product].CurrentMember = [Product].[All Product].[Commission] OR
(IsAncestor([Product].[All Product].[Commission],
[Product].CurrentMember))
AND [Measures].[Trade Count] > 0,
[Measures].[Revenue] / [Measures].[Trade Count], null)'

I haven't added the test of All Product, the formula at this point is going
into infinite recursion when selected for product dimension. Any test on
product current member seems to cause the recursion and I think I understand
it. I need some ideas in fixing the problem.

Thanks in advance
Murthy

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.