![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've created a few account cubes that roll up using unary operators without issue. For example, when you drill down, the child sums up to the parent. 100 --50 --35 -- -- 15 -- -- 20 -- 15 -- 5 -- 10 I've created a new one and for some odd reason, it is not summing up all the way to the top. When I change the unary operator from + to -, it appears that only the direct parent subtracts the number, but it doesnt not trickel all the way up the tree. I'm trying this solution because the are instances where I need to change the value of the data from + to -. I cannot do this from the ETL because the data rules proclude me from doing that. I tried using a SCOPE SCOPE ( [Account].[Accounts].Memebers, [Measures],[Amount]; THIS = ( IIF ([Accoount].[Reverse Sign].&[Y], [Account].[Accounts].CurrentMember, [Measures], [Amount] * -1, [Account].[Accounts].CurrentMember, [Measures], [Amount])) ); END SCOPE This sort of works except, it changes the sign of all the parents as well. So something that should look like this... -- 75 (N) -- -- 50 (N) -- -- 25 (N) -- -- -- 30 (N) -- -- -- (-5) (Y) looks like this -- (-75) (N) -- -- 50 (N) -- -- (-25) (N) -- -- -- 30 (N) -- -- -- (-5) (Y) The thing I notice is that if the member is not a parent anwhere up the tree, it's sign is unaffected. I know these are 2 seperate issues, but the Sign issue is the ideal solution and the odd rollup issue is my Plan B. Any suggestion is greatly appreciated. |
![]() |
| Thread Tools | |
| Display Modes | |
| |