Thank you all for your replies !
David Usherwood wrote:My guess is that you have written
Code: Select all
['MyCalcVersion'] = N: ['MySourceVersion'];
['MyCalcVersion'] = S: ['MySourceVersion'];
when you need to write
Code: Select all
['MyCalcVersion'] = N: ['MySourceVersion'];
['MyCalcVersion'] = S: db('MyCube','MySourceVersion',!Dim1,!Dim2);
You can't use ['...'] references to pick up string values.
Sorry for the poor syntax of my rule, I just simplified it, writing my post.
I of course used ['..'] and the DB(...) to pick up string values.
I checked the Feeders, and it looks good.
I post hereunder my "true" rule and the associated feeders, it may help finding my issue...
Code: Select all
# LIVE versions & Multi-Program versions
[] = N: IF(SUBST(!Version MSN, 4, 5) @= '_LIVE' % ELISANC('Version MSN', 'PPT', !Version MSN) = 1,
DB('Assumptions MSN', ATTRS('Version MSN', !Version MSN, 'Link ' | ELPAR('MSN', !MSN, 1)), !MSN, !KF MSN),
CONTINUE
);
[] = S: IF(SUBST(!Version MSN, 4, 5) @= '_LIVE' % ELISANC('Version MSN', 'PPT', !Version MSN) = 1,
DB('Assumptions MSN', ATTRS('Version MSN', !Version MSN, 'Link ' | ELPAR('MSN', !MSN, 1)), !MSN, !KF MSN),
CONTINUE
);
FEEDERS;
# Versions LIVE
# -- Last Closing Reference (PLA_LIVE)
[] => DB('Assumptions MSN', IF(!Version MSN @= ATTRS('Version MSN', 'PPA_LIVE', 'Link ' | ELPAR('MSN', !MSN, 1)), 'PPA_LIVE', 'No Feed'), !MSN, !KF MSN);
# -- Last Planning Reference (PLT_LIVE)
[] => DB('Assumptions MSN', IF(!Version MSN @= ATTRS('Version MSN', 'PPT_LIVE', 'Link ' | ELPAR('MSN', !MSN, 1)), 'PPT_LIVE', 'No Feed'), !MSN, !KF MSN);
# Versions Multi-Programs
[] => DB('Assumptions MSN', IF(SUBST(!Version MSN, 4, 5) @<> '_LIVE' & ELISANC('Version MSN', 'PPT', !Version MSN) = 0 & ELISANC('Version MSN', 'PPA', !Version MSN) = 0, 'PPT', 'No Feed'), !MSN, !KF MSN);