dbTalk Databases Forums  

ClosingPeriod - newbie question.

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


Discuss ClosingPeriod - newbie question. in the microsoft.public.sqlserver.olap forum.



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

Default ClosingPeriod - newbie question. - 11-01-2004 , 09:19 AM






Hi all,

I'm trying to calculate a measure that will provide the value for the last
day in any given period, at any level. So looking at the year level (with
this year's data), you see the value for yesterday; and you should get the
same value if you are looking at the current quarter/month/week and day.

I have been looking at ClosingPeriod() is it sounds like it should give me
what I want, but it only seems to return calculations at one particularlevel
- i.e. if I change the view and go "up" the time dimension, the cells are no
longer calculated.

My measure calculation is as follows:

WITH MEMBER [Measures].[CALC_THING] AS
'([Measures].[BASE_THING],
ClosingPeriod([Trading Date].[Day],
[Trading Date].CurrentMember))'

Can anyone provide the required "nudge", as I feel I'm losing a grip on how
this stuff works!

Many 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.