I have the following rule to caluclate the average cost per day:
Code: Select all
['Product a','Average Final Value'] = C:
IF(
ATTRS('Time_Day',!Time_Day,'Act For')@='Actual',
DB('Production Actuals',!Production Hierarchy,'Oil','mmscfd',!Time_Day,'Final Value')\31,
CONTINUE
)
;
When I replace the "31" with either of the below 2 pieces of code that try to bring back the "Days per month" just brings back "0":
Code: Select all
ATTRN('Time_Day',!Time_Day,'Days per month'),
Code: Select all
DB('}ElementAttributes_Time_Day',!Time_Day,'Days per month'),
Thanks for any advice.