Percentage variances
Posted: Sun Mar 03, 2013 12:52 pm
HI guys, I have a problem where I cannot see a solution.
In my cube I have an element which is a margin calculation and I do this via a rule:
[Gross Profit %] = [Gross Profit] / [Total Revenue];
and this works as desired.
Now I also wanted to have the variances between ACTUAL and BUDGET, so I added in my SCENARIO/VERSION dimension a consolidated element [VAR ACT VS BUD] and added the elements Actual and Budget to it and set the weight of Budget to -1. So TM1 was given me the variance between actual and budget on all elements and it worked fine, except on the element [Gross Profit %] . There the rule calculated the margin of the variances, but I wanted to see the variance between the Actual margin of 20% and the Budget margin of 25%, so -5%.
So I added the following to my rule calculation:
[Gross Profit %] = IF( ATTRS('SCENARIO', !SCENARIO, 'RULE EXCEPTION') @= 'Y', STET, [Gross Profit] / [Total Revenue]);
so that the rule calculation will not be performed on my Variance element where I set the the attribute 'RULE EXCEPTION' to Y.
This new rule worked actually on the lowest element level just fine, but does not work on a consolidated level. There it is summing up the variances of all N elements and not building a variance of the consolidated value.
Any idea what I can do to get this working a consolidated level ?
Thanks so much..Manfred
In my cube I have an element which is a margin calculation and I do this via a rule:
[Gross Profit %] = [Gross Profit] / [Total Revenue];
and this works as desired.
Now I also wanted to have the variances between ACTUAL and BUDGET, so I added in my SCENARIO/VERSION dimension a consolidated element [VAR ACT VS BUD] and added the elements Actual and Budget to it and set the weight of Budget to -1. So TM1 was given me the variance between actual and budget on all elements and it worked fine, except on the element [Gross Profit %] . There the rule calculated the margin of the variances, but I wanted to see the variance between the Actual margin of 20% and the Budget margin of 25%, so -5%.
So I added the following to my rule calculation:
[Gross Profit %] = IF( ATTRS('SCENARIO', !SCENARIO, 'RULE EXCEPTION') @= 'Y', STET, [Gross Profit] / [Total Revenue]);
so that the rule calculation will not be performed on my Variance element where I set the the attribute 'RULE EXCEPTION' to Y.
This new rule worked actually on the lowest element level just fine, but does not work on a consolidated level. There it is summing up the variances of all N elements and not building a variance of the consolidated value.
Any idea what I can do to get this working a consolidated level ?
Thanks so much..Manfred