dbTalk Databases Forums  

Stop averages going into the future

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


Discuss Stop averages going into the future in the microsoft.public.sqlserver.olap forum.



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

Default Stop averages going into the future - 04-12-2004 , 08:01 AM







I have defined the average as

Iif(
Count(LastPeriods(4,[Time].[FiscalYW].CurrentMember))<4,
null,
SUM(LastPeriods(4,[Time].[FiscalYW].CurrentMember ),
([Trend].&[No Trend]) )
/4
)

If the latest week of data is wk 7 fiscalyr 2004 then
calculated member also generates an average for wk 8,9 and
10. how should the formula change to exclude these future
weeks.

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.