|
发表于 2014-3-16 20:41:15
|
显示全部楼层
Hi, unsure if this helps. for numeric, write N: based rules
Could use ELPAR to find the matching Qtrs but best to create an attribute 'QTR' for each leaf element
Code: # Do not allow input to non plan quarter
['Plan','Ecost'] = N:
IF(
# The current month within the months quarter
ATTRS('Month', !Month, 'QTR') @= ATTRS('Month', DB('Control', 'Item', 'Current Month'), 'QTR')
,
# Allow input
STET,
# otherwise zero
0
);
['Plan','Employeename'] = S:
IF(
# The current month within the months quarter
ATTRS('Month', !Month, 'QTR') @= ATTRS('Month', DB('Control', 'Item', 'Current Month'), 'QTR')
,
# Allow input
STET,
# otherwise zero
''
);
note: use CONTINUE instead of STET if you have furher calcs on the intersections
btw, use element names not aliases in rules if you can, they wont ever change (unless deleted), while aliases may |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|