PES_MACRO_TIMEPHASE_ATTRIBUTES_TIMESCALE

PES_MACRO_TIMEPHASE_ATTRIBUTES_TIMESCALE converts the timephased attributes into the requested timescale and storage unit.

The parameters for this macro are:
The following example shows a call to get all the attributes that can be shown in Currency in Calendar Month for the year 2005 for item id 49.
SELECT * FROM PES_MACRO_TIMEPHASE_ATTRIBUTES_TIMESCALE(tmp, obj_UID = 49, Currency,
 Calendar Month, 1/1/2005, 12/31/2005, true)