Sum of calculated children members
Posted: Wed Jul 04, 2012 8:50 pm
Hello, guys!
I'm new to this forum and to TM1 and I already have a project that needs a difficult calculation (at least for me).
There are 4 dimensions: Period, Accounts, Organization and BU. Attached, there's an example of Periods dimension structure. This calculation gives me the monthly grades for all organizations. Data is loaded monthly, for the first day of each month.
In Accounts, there are:
qtde_meta_visitas
qtde_meta_contatos
qtde_visitas_feitas
qtde_contatos_feitos
nota_%_rm
By this, i've built the following calculation, wich results in a percentual value:
['nota_%_rm'] = (((['qtde_visitas_feitas'] / ['qtde_meta_visitas']) + (['qtde_contatos_feitos'] / ['qtde_meta_contatos']))/2);
My business rule requires that this calculation works only for leaf members of Organization dimension. For consolidated levels, it should be the average value ("sum of children grades" / "number of children")
I'm not able to sum the grades, as per default TM1 is calculating it in all levels, for all dimensions.
Hope you can help! Thanks a lot!!!
I'm new to this forum and to TM1 and I already have a project that needs a difficult calculation (at least for me).
There are 4 dimensions: Period, Accounts, Organization and BU. Attached, there's an example of Periods dimension structure. This calculation gives me the monthly grades for all organizations. Data is loaded monthly, for the first day of each month.
In Accounts, there are:
qtde_meta_visitas
qtde_meta_contatos
qtde_visitas_feitas
qtde_contatos_feitos
nota_%_rm
By this, i've built the following calculation, wich results in a percentual value:
['nota_%_rm'] = (((['qtde_visitas_feitas'] / ['qtde_meta_visitas']) + (['qtde_contatos_feitos'] / ['qtde_meta_contatos']))/2);
My business rule requires that this calculation works only for leaf members of Organization dimension. For consolidated levels, it should be the average value ("sum of children grades" / "number of children")
I'm not able to sum the grades, as per default TM1 is calculating it in all levels, for all dimensions.
Hope you can help! Thanks a lot!!!