![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
You can create a separate cube with a "Distinct Count" measure for the member column, and set the "Source Table Filter" for the cube to "total_bal <> 0". This cube can be combined with existing cubes in a virtual cube. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
| |||
| |||
|
| With Member [Measures].[StaffCount] as |
#5
| |||
| |||
|
|
Assuming that there is a [tot_bal] "sum" measure, based on a "tot_bal" fact table field, and that this field is always >= 0, MDX can be used to count [staff_member_id] members for a given node in the time hierarchy: With Member [Measures].[StaffCount] as 'Count(Filter(NonEmptyCrossJoin( [Staff].[staff_member_id].Members, {[Time].CurrentMember}, 1), [Measures].[tot_bal] > 0))' - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#6
| |||
| |||
|
| With Member [Measures].[StaffCount] as |
#7
| |||
| |||
|
|
To count staff where [Measures].[1008] > 0: With Member [Measures].[StaffCount] as 'Count(Filter( [Staff].[staff_member_id].Members, [Measures].[1008] > 0))' - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
| select 1 as col1, * from openquery (ROP_OLAP, " |
![]() |
| Thread Tools | |
| Display Modes | |
| |