PES_MACRO_REMAINING_RESOURCE_CAPACITY_FROM_ASSIGNMENT

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

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