dbTalk Databases Forums  

YTD calculation on two hierarchies

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


Discuss YTD calculation on two hierarchies in the microsoft.public.sqlserver.olap forum.



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

Default YTD calculation on two hierarchies - 12-20-2006 , 02:31 AM






Im am using an SQL server 2005 AS cube and want to make a YTD calculation
which can handle the two different hierarchies that my time dimension has:
- Year-Month-day hierarchy
- Year-Week-dat hierarchy

Dpending on the attribute the user provides, the measure has to be cumulated
untill the given month (when the user provides a month) or week (when the
user provides a week).

I want to make 1 calculated member which can handle weeks and months.

Can anybody give me some help on this?

Thanks





Reply With Quote
  #2  
Old   
ssas_student
 
Posts: n/a

Default Re: YTD calculation on two hierarchies - 12-20-2006 , 03:57 AM






Hi Pieter,

please go through this blog.
http://sqljunkies.com/WebLog/mosha/a...lelperiod.aspx

it talks about something simillar to your situation.
Might be helpful

Pieter M wrote:
Quote:
Im am using an SQL server 2005 AS cube and want to make a YTD calculation
which can handle the two different hierarchies that my time dimension has:
- Year-Month-day hierarchy
- Year-Week-dat hierarchy

Dpending on the attribute the user provides, the measure has to be cumulated
untill the given month (when the user provides a month) or week (when the
user provides a week).

I want to make 1 calculated member which can handle weeks and months.

Can anybody give me some help on this?

Thanks


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.