dbTalk Databases Forums  

Custom rollups and multiple time hierarchies

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


Discuss Custom rollups and multiple time hierarchies in the microsoft.public.sqlserver.olap forum.



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

Default Custom rollups and multiple time hierarchies - 08-10-2004 , 05:57 PM






Hi,

I have a cube showing number of customers allocated to salesreps. For the
time dimension, I would like the members in each level to show the value of
their last child - eg, the total for year 1997 should show the number of
customers in Quarter 4 (which should show the number of customers for
December).

I created custom rollups for the Year and Quarter levels which look like
this:

[Time].CurrentMember.LastChild

This worked fine while there was only 1 hierarchy in the time dimension.
However, after creating new hierarchies only the last members of each level
contain any data. Does anybody have any idea why this is happening? I must
be missing something obvious, but I can't think what it might be.

Thanks,

Peter



Reply With Quote
  #2  
Old   
Olivier Matrat
 
Posts: n/a

Default Re: Custom rollups and multiple time hierarchies - 08-12-2004 , 09:04 AM






Hi

Not sure to see where your exact problem is, but one you start using
multiple hierarchies in a cube you will only see values at the intersection
of related members from all your hierarchies, or at the All level.
You can circumvent this by building MDX expressions that typically use the
LinkMember() function to display values independant from the current
selection on one particular hierarchy.
Just one other thing: I guess you must be referencing [Time.<Hierarchy>] in
your custom rollup formula, not just [Time]?

HTH

Olivier.

"Peter Kenyon" <p.kenyon.no.spam (AT) paradise (DOT) net.nz> wrote

Quote:
Hi,

I have a cube showing number of customers allocated to salesreps. For the
time dimension, I would like the members in each level to show the value
of
their last child - eg, the total for year 1997 should show the number of
customers in Quarter 4 (which should show the number of customers for
December).

I created custom rollups for the Year and Quarter levels which look like
this:

[Time].CurrentMember.LastChild

This worked fine while there was only 1 hierarchy in the time dimension.
However, after creating new hierarchies only the last members of each
level
contain any data. Does anybody have any idea why this is happening? I must
be missing something obvious, but I can't think what it might be.

Thanks,

Peter





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.