dbTalk Databases Forums  

Avg across currently selected members, not AllMembers

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


Discuss Avg across currently selected members, not AllMembers in the microsoft.public.sqlserver.olap forum.



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

Default Avg across currently selected members, not AllMembers - 06-23-2006 , 09:56 AM






Hi -

I need help. We have a a cube that has just two measures...termination
count and head count. For every employee, for every day we have a
tuple. If the employee continued employment their term count is zero
and their head count for the day is 1. If they were termed that day,
both measures are 1.

I am using this calculation:

AVG([Date].[Day].AllMembers, [Measures].[Head Count])

But I don't want "AllMembers" what I want are all currently selected
members...so that if the user chooses a week long period - I only want
it to average the week they have chosen. How do I do that?

thanks in advance.


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.