PES_MACRO_REMAINING_RESOURCE_CAPACITY_FROM_ALLOCATION

PES_MACRO_REMAINING_RESOURCE_CAPACITY_FROM_ALLOCATION shows remaining allocation capacity per resource for the requested timescale and storage unit. The output value of this macro is calculated as [capacity - allocation].

The parameters for this macro are:
The following example shows a call to get remaining resource capacity for allocations (in hours) for the Actual dimension between May 17, 2008 and May 17, 2009
SELECT * FROM PES_MACRO_REMAINING_RESOURCE_CAPACITY_FROM_ALLOCATION(tmp, , Hours,
 Calendar Month, 2008-03-17, 2009-03-17, 1)