![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm looking for a weight_value_expression. The following statemant writes the measure "Credit" to a given account for a given period (the account "kto" isn't a leaf cell, there are sub-accounts): UPDATE CUBE [MyCube] SET ( [Time].[2005].[Q1], [Account].[kto], [Measures].[Credit] ) = 1000 USE_WEIGHTED_ALLOCATION That is okay. But how can I weighted write back based on another Measure? For example at the ratio of each "Balance" and total of all sub-accounts of "kto", like this: ... USE_WEIGHTED_ALLOCATION BY ( [Time].[2005].[Q1], [Account].[kto], [Measures].[Balance] ) / ( [Time].[2005].[Q1], [Account].[kto], [Measures].[Balance].Total??? ) I tried also: ... USE_WEIGHTED_ALLOCATION BY ( [Time].[2005].[Q1], [Account].[kto].CurrentMember, [Measures].[Balance] ) / ( [Time].[2005].[Q1], [Account].[kto], [Measures].[Balance].ParentMember ) This dosn't work. Can anybody help? Thanks in advance. Michael |
#3
| |||
| |||
|
|
USE_WEIGHTED_ALLOCATION BY ( [Measures].[Balance] ) / ( [Account].[kto], [Measures].[Balance] ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |