dbTalk Databases Forums  

MDX for Lookup cube

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


Discuss MDX for Lookup cube in the microsoft.public.sqlserver.olap forum.



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

Default MDX for Lookup cube - 12-20-2004 , 12:43 AM






Hi,

I have a simple lookup cube with Time, Product and 1 measure called
Budget. In the lookup cube Product doesn't go down to the lowest
level like it does in the virtual cube.

eg.
Product
-->Type Level 1 - Lookup cube only goes to this level.
-->Category Level 2
-->Widget Level 3 - All other cubes

This budget is the budget per product at the lowest level, however the
customer wants a quite odd setup, so what i need to do is carry that
Level 1 value all the way down to Level 3 in the cube. So the cube
would show values like

Product
-->40
-->40
-->40

In my lookup cube statement i only need the first level membername
passed to the lookup cube, this is what i have so far, however when
you drill below level 1 i get ERR#

LookupCube("ProductBenchmark","([Measures].[Benchmark], " +
Time.Currentmember.UniqueName + ", " +
[Product].CurrentMember.UniqueName + ")")

Thanks to anyone that can help

Regards

Ben

Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: MDX for Lookup cube - 12-20-2004 , 11:39 AM






You could use :

ancestor([Product].CurrentMember.UniqueName ,[Type])

in your lookup expression.
HTH,
Brian
www.geocities.com/brianaltmann/olap.html

"Benaud" wrote:

Quote:
Hi,

I have a simple lookup cube with Time, Product and 1 measure called
Budget. In the lookup cube Product doesn't go down to the lowest
level like it does in the virtual cube.

eg.
Product
-->Type Level 1 - Lookup cube only goes to this level.
-->Category Level 2
-->Widget Level 3 - All other cubes

This budget is the budget per product at the lowest level, however the
customer wants a quite odd setup, so what i need to do is carry that
Level 1 value all the way down to Level 3 in the cube. So the cube
would show values like

Product
-->40
-->40
-->40

In my lookup cube statement i only need the first level membername
passed to the lookup cube, this is what i have so far, however when
you drill below level 1 i get ERR#

LookupCube("ProductBenchmark","([Measures].[Benchmark], " +
Time.Currentmember.UniqueName + ", " +
[Product].CurrentMember.UniqueName + ")")

Thanks to anyone that can help

Regards

Ben


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.