This structure stores information to be used for performing allocations.
typedef struct ESS_PERF_ALLOC_T
{
ESS_STR_T pov;
ESS_STR_T amount;
ESS_STR_T amountContext;
ESS_STR_T amountTimeSpan;
ESS_STR_T target;
ESS_STR_T targetTimeSpan;
ESS_ALLOCATION_TARGETTIMESPAN_OPTION targetTimeSpanOption;
ESS_STR_T offset;
ESS_STR_T debitMember;
ESS_STR_T creditMember;
ESS_STR_T range;
ESS_STR_T excludedRange;
ESS_STR_T basis;
ESS_STR_T basisTimeSpan;
ESS_ALLOCATION_BASISTIMESPAN_OPTION basisTimeSpanOption;
ESS_ALLOCATION_METHOD_OPTION allocationMethod;
ESS_ULONG_T spreadSkipOption;
ESS_ALLOCATION_ZEROAMT_OPTION zeroAmountOption;
ESS_ALLOCATION_ZEROBASIS_OPTION zeroBasisOption;
ESS_ALLOCATION_NEGBASIS_OPTION negativeBasisOption;
ESS_ALLOCATION_ROUND_OPTION roundMethod;
ESS_STR_T roundDigits;
ESS_STR_T roundToLocation;
ESS_ULONG64_T groupID;
ESS_ULONG64_T ruleID;
} ESS_PERF_ALLOC_T;| Data Type | Field | Description |
|---|---|---|
| ESS_STR_T | pov | MDX set expression specifying allocation area within the database |
| ESS_STR_T | amount | MDX tuple or numeric value expression specifying amount or amounts to be allocated |
| ESS_STR_T | amountContext | Optional: MDX tuple expression:
|
| ESS_STR_T | amountTimeSpan | Optional: MDX set expression of level 0 members specifying time periods from which amount is summed before allocation |
| ESS_STR_T | target | MDX tuple expression specifying target locations for allocation |
| ESS_STR_T | targetTimeSpan | Optional: MDX set expression specifying time periods for target; used with targetTimeSpanOption |
| ESS_ALLOCATION_TARGETTIMESPAN_OPTION_T | targetTimeSpanOption | Optional: Specifies how values are allocated to targetTimeSpan members:
|
| ESS_STR_T | offset | Optional: MDX tuple expression specifying location for offsetting entries |
| ESS_STR_T | debitMember | Optional: MDX member expression specifying where positive result values should be written. If empty, debit/credit processing is not performed. |
| ESS_STR_T | creditMember | Optional: MDX member expression specifying where negative result values should be written. If empty, debit/credit processing is not performed. |
| ESS_STR_T | range | MDX set expression specifying database region for allocation |
| ESS_STR_T | excludedRange | Optional: MDX set expression specifying a subset of range; a region included in the allocation but not written to |
| ESS_STR_T | basis | MDX tuple expression specifying the basis location. If allocationMethod = ESS_ASO_ALLOCATION_METHOD_SPREAD and spreadSkipOptions = 0, then basis must be empty. |
| ESS_STR_T | basisTimeSpan | Optional: MDX set expression specifying time periods to be considered with basis. With basisTimeSpanOption, determines basis for allocation. |
| ESS_ALLOCATION_BASISTIMESPAN_OPTION_T | basisTimeSpanOption | Optional: Specifies how basis is computed across time periods from the following options:
|
| ESS_ALLOCATION_METHOD_OPTION_T | allocationMethod | Allocation method:
|
| ESS_ULONG_T | spreadSkipOption | Optional:
|
| ESS_ALLOCATION_ZEROAMT_OPTION_T | zeroAmountOption | Specifies what to do when an amount value is zero or #MISSING:
|
| ESS_ALLOCATION_ZEROBASIS_OPTION_T | zeroBasisOption |
Specify an option:
|
| ESS_ALLOCATION_NEGBASIS_OPTION_T | negativeBasisOption | Tells Essbase what to do when a negative basis value is encountered:
The following values are only valid when allocationMethod==ESS_ASO_ALLOCATION_METHOD_SHARE
|
| ESS_ALLOCATION_ROUND_OPTION_T | roundMethod | Rounding method for allocated values:
|
| ESS_STR_T | roundDigits | Must be empty if roundMethod=ESS_ASO_ALLOCATION_ROUND_NONE. Must be specified as a MDX numeric value or tuple expression. Value must be a whole number between 100 and -100. |
| ESS_STR_T | roundToLocation | Optional: If roundMethod=ESS_ASO_ALLOCATION_ROUND_ERRORSTOLOCATION, this is an MDX tuple expression specifying a location within range; empty otherwise |
| ESS_ULONG64_T | groupID | Internal use only. Always enter 0. |
| ESS_ULONG64_T | ruleID | Internal use only. Always enter 0. |