Parameterizing ConsolidateChildren?
Posted: Fri Nov 01, 2013 3:02 am
Ok let's take a simple example:
['LineA'] = ConsolidateChildren('Account');
['LineB'] = ConsolidateChildren('Account');
['LineC'] = ConsolidateChildren('Account');
...assuming I have multiple instances where a ConsolidateChildren is required, but dont wish to keep updating rules or hardcoding, what options are there to parameterize?
e.g. flag accounts that require consolidation and run an if statement?
...would something like this work, or would it totally crash my cube? =)
Cheers,
Matt
['LineA'] = ConsolidateChildren('Account');
['LineB'] = ConsolidateChildren('Account');
['LineC'] = ConsolidateChildren('Account');
...assuming I have multiple instances where a ConsolidateChildren is required, but dont wish to keep updating rules or hardcoding, what options are there to parameterize?
e.g. flag accounts that require consolidation and run an if statement?
Code: Select all
[] = If( AttrS('Account',Account,'Flag')@='Consolidate' , ConsolidateChildren('Account'), continue ;
Cheers,
Matt