dbTalk Databases Forums  

Calc Member for Avg across Time

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


Discuss Calc Member for Avg across Time in the microsoft.public.sqlserver.olap forum.



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

Default Calc Member for Avg across Time - 11-18-2003 , 10:04 AM






I am trying to calulate avg for part count by dept. I
need it to use previous time level for avg.

Example:
I have a time dimension of Year/Week/Day. I have another
dimension of Dept with 5 departments. When Showing Time
for a week I need the avg per dept for all days in that
week. When showing time for Year I need avg for all weeks
in that year.

Any ideas? It seems to me that the basic calc member
would look like:

Avg({[Customer Dept].CurrentMember},CoalesceEmpty
([Measures].[Part Count],0))

How do I apply time to this? In a where clause?

Any help would be appreciated,

Thanks, Darryl


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.