dbTalk Databases Forums  

Average Daily Usage

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


Discuss Average Daily Usage in the microsoft.public.sqlserver.olap forum.



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

Default Average Daily Usage - 04-15-2004 , 03:32 PM






Hi Folks,

I want calculate the average daily usage over the selected time period, but
have not been able to figure it out. For the selected period, I want to
count all days in that period, and divide a measure by that count. If a
quarter is selected, I want the number of days in that quarter. If a month,
the number of days in that month. Any suggestions on how to do this?

Thanks,

Jim



Reply With Quote
  #2  
Old   
Jim Davis
 
Posts: n/a

Default Re: Average Daily Usage - Solution! - 04-15-2004 , 06:23 PM






Found the answer I needed.

COUNT(Descendants([Time].[Time].CurrentMember, Day))

returns the number of days over the selected periods



"Jim Davis" <jim.davis (AT) flexcar (DOT) com> wrote

Quote:
Hi Folks,

I want calculate the average daily usage over the selected time period,
but
have not been able to figure it out. For the selected period, I want to
count all days in that period, and divide a measure by that count. If a
quarter is selected, I want the number of days in that quarter. If a
month,
the number of days in that month. Any suggestions on how to do this?

Thanks,

Jim





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.