Based on the example you gave, you need the number of days the selected
projects were worked. If only a single member (like month) is selected
from the TIME dimension, then:
Set [SelectedProjects] as
'{[Prj 1], [Prj 2]}'
Member [Measures].[DaysWorked] as
'Count(NonEmptyCrossJoin(
Descendants([TIME].CurrentMember,
[TIME].[Day]),
[SelectedProjects], 1))'
Select {[Measures].[DaysWorked]} on columns,
[Time].[2005].[Q2].Children on rows
from [ProjectCube]
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***