Rule Not Working for Certain Cells
Posted: Thu Sep 06, 2018 8:22 am
Hi,
The below three statements populate the measure in a TM1 cube with either a 1 if it is the 15th of the month, or a 0 if it isn't.
However Rule 1, populates 11 of the 12 months, Rule 2 populates 4 of the 12 months and rule 3 doesn't populate any of the months..... I have inherited this cube from another developer and cannot figure out for the life of me where the set up is limiting the population as the rules are identical!
All dimension Elements have been set up as Simple with 1 as the weight.
The Elcomp statement just returns the 15th of every month in a format the cube recognizes - ;2018-01-15'
['Actual Margin'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET); ##Rule 1
['Loaded Margin'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET); ##Rule 2
[Loaded Margin_TEST'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET); ##Rule 3
There must be something strange with the dimensions or something as when I replace the formulas as below only the same months are populated.... :
[Actual Margin'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET);
[Loaded Margin'] = N:5;
[Margin_TEST'] = N:5;
Would really appreciate if anyone can help me understand this, I cannot find where Tm1 is blocking the cell from being populated.
Thanks
Nashco
The below three statements populate the measure in a TM1 cube with either a 1 if it is the 15th of the month, or a 0 if it isn't.
However Rule 1, populates 11 of the 12 months, Rule 2 populates 4 of the 12 months and rule 3 doesn't populate any of the months..... I have inherited this cube from another developer and cannot figure out for the life of me where the set up is limiting the population as the rules are identical!
All dimension Elements have been set up as Simple with 1 as the weight.
The Elcomp statement just returns the 15th of every month in a format the cube recognizes - ;2018-01-15'
['Actual Margin'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET); ##Rule 1
['Loaded Margin'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET); ##Rule 2
[Loaded Margin_TEST'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET); ##Rule 3
There must be something strange with the dimensions or something as when I replace the formulas as below only the same months are populated.... :
[Actual Margin'] = N:IF(!Days @= ELCOMP('Days', AttrS('Days', !Days, 'Cal Month'), 15), 1, STET);
[Loaded Margin'] = N:5;
[Margin_TEST'] = N:5;
Would really appreciate if anyone can help me understand this, I cannot find where Tm1 is blocking the cell from being populated.
Thanks
Nashco