![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| Iif([Census Gender].CurrentMember is |
#3
| |||
| |||
|
|
30 150 N/A [0] |
|
Assuming that [Measures].[Census Pop] has a 'sum' aggregation function, try the following: Iif([Census Gender].CurrentMember is [Census Gender].[Gender All].&[All Gender].&[N/A], 0, Iif(IsAncestor([Census Gender].CurrentMember, [Census Gender].[Gender All].&[All Gender].&[N/A]), [Measures].[Census Pop] - ([Measures].[Census Pop], [Census Gender].[Gender All].&[All Gender].&[N/A]), [Measures].[Census Pop])) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
If multiple dimensions have "N/A" members, should the contributions not be rolled up for cells where the member of any dimension is "N/A"? So, if Measures].[Census Pop] is 50 for Gender = "M" and Age = "N/A", should 50 be excluded in Age roll-up, but included in Gender rollup? Some examples of fact data with desired results may help, since it seems more complex than the original description; and Calculated Cells may be a better solution than Calculated Members. - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
At least from your sample, the fact data seems to be summarized only along single dimensions. So there is no data for combinations of different dimensions, such as for Gender F AND Age 10-20. Typically you would start with fact data of a higher dimensionality for a cube, so is that level of detail (ie. Census Pop and Cust Cnt for different dimension combinations) not available? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |