CanAllocateMeasure Property
The CanAllocateMeasure property returns whether you can allocate the specified measure to descendant levels and categories.
Syntax
object .CanAllocateMeasure(Measure)
Applies To
Discussion
Use this property to determine if a specific measure is eligible for allocation. If you want to allocate the measure proportionally, you can use the CanAllocateByMeasure property to determine which measures you can use as weighting factors.
Use the SetAllocation method to allocate the values of a measure to all descendant categories. The allocation feature distributes data, specified at a summary level of a dimension, to lower levels.
A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.
Parameter |
Description |
---|---|
Measure |
Measure required. Specifies the Measure object used as a weighting factor. Type: Object |
Type
Boolean
Access
Read
Examples
objLevel
= objModel.Dimensions("Products").DimensionLevels(1)If
objLevel.CanAllocateMeasure(objMeasure)
= True Then