is it possible to write a rule that can work with the selected value of a certain dimension from the cube?
e.g.
we have a dimension of with some (consolidated) elements:
[*]Gross Turnover
[*]Net Revenue
[*]Gross Profit
[*]Contribution I
[*]...
each of these groups may countain 1-n sub groups or number elements.
and we have another dimension with our KPI currently only containing one element "Value".
(+ some more dimensions to complete our cube)
now we'd like to add another KPI "Value in % of Net Revenue" that should be calculated be a rule.
As I'm pretty new (first time actually working with) to rules I still have some troubles.
my first attempts where going another direction where i added a KPI Element for each of the groups mentined above and having a rule like this
Code: Select all
['Gross Profit in %'] = ['Gross Profit'] / ['Net Revenue'];
Code: Select all
SKIPCHECK;
['Gross Profit in %'] = ['Gross Profit'] / ['Net Revenue'];
# ...
FEEDERS;
['Net Revenue'] => ['Gross Profit in %'];
# ...
1) I need a lot of rules to get a % element for all normal elements
2) It is not really flexible as I have to add a % elmenet + a new rule for each added "normal" element.
Now our Idea was to add the "Value in % of Net Revenue" KPI wit a formular like
But i have no idea if it is possible to have the red part as dynamic as "if the element 'xyz' is selected show the result of 'xyz / Net Revenue' as % and if it is 'abc' divide this value by Net Revenue".['Value in % of Net Revenue'] = ['Whatever Element of the group is active right now'] / ['Net Revenue'];
I hope it is more or less clear what i want to achieve and someone has an idea to get near to this.
Thanks in advance