Topic
• 2 replies
• Latest Post - ‏2013-06-07T05:39:51Z by wxyzabc
wxyzabc
29 Posts

# Pinned topic Even based population of childs with % of children rule on parent

‏2013-06-06T06:49:30Z | tbsm

Hi,

Is % of children rule on parent will work with Even based population of childs?? Following are the scenario.....
Parent "A" has 100 child like "B1","B2"..."B100". Now if I want event based population of these chiild("B1","B2"..."B100") and will apply % of children rule on parent("A") as if 25% to 60% of child's("B1","B2"..."B100") are bad then show parent("A") as marginal.

Is this % of children rule will work?? If yes then please elaborate how parent will calculate the % of bad child from total child, as because of event based population parent will have no information of total number of child?

Need an urgent help.

Thanks & Regards
wxyzabc

• randybrown
64 Posts
ACCEPTED ANSWER

#### Re: Even based population of childs with % of children rule on parent

‏2013-06-06T12:12:26Z

Hi,

By event based population, my assumption is that you are using an autopopulation rule to create B1,... B100. This rule will tag each "B" child service with the same template, for example, "T1". The rule will also make the child services have the parent "A".

The % based aggregation rule will always be based on the number of children currently defined as dependents of "A" and tagged with the template defined by the aggregation rule ("T1" in this example). So as each "B" child is created, the status of "A" will be recalculated based on the number of children currently defined. So after the first 10, the % will be n/10 where n is the number of "bad" children -- after 20 it will be n/20, etc. until you reach a steady state of 100 children so that each calculation is n/100.

If you want to define the number of children prior to the autopopulation occurring, you would have to somehow feed that information into a more advanced aggregation calculation, perhaps a Numerical Formula Rule where an Impact policy can be used.

TBSM includes a sample policy function called "NumberOfBadChildren" that can be used on a Numerical Aggregation Rule. You could copy this function and use a modified % calculation, again assuming you have some way for the policy to acquire the number of possible children to be used in the % calculation.

Hope that helps...

Randy Brown

• randybrown
64 Posts

#### Re: Even based population of childs with % of children rule on parent

‏2013-06-06T12:12:26Z

Hi,

By event based population, my assumption is that you are using an autopopulation rule to create B1,... B100. This rule will tag each "B" child service with the same template, for example, "T1". The rule will also make the child services have the parent "A".

The % based aggregation rule will always be based on the number of children currently defined as dependents of "A" and tagged with the template defined by the aggregation rule ("T1" in this example). So as each "B" child is created, the status of "A" will be recalculated based on the number of children currently defined. So after the first 10, the % will be n/10 where n is the number of "bad" children -- after 20 it will be n/20, etc. until you reach a steady state of 100 children so that each calculation is n/100.

If you want to define the number of children prior to the autopopulation occurring, you would have to somehow feed that information into a more advanced aggregation calculation, perhaps a Numerical Formula Rule where an Impact policy can be used.

TBSM includes a sample policy function called "NumberOfBadChildren" that can be used on a Numerical Aggregation Rule. You could copy this function and use a modified % calculation, again assuming you have some way for the policy to acquire the number of possible children to be used in the % calculation.

Hope that helps...

Randy Brown

• wxyzabc
29 Posts

#### Re: Even based population of childs with % of children rule on parent

‏2013-06-07T05:39:51Z

Hi,

By event based population, my assumption is that you are using an autopopulation rule to create B1,... B100. This rule will tag each "B" child service with the same template, for example, "T1". The rule will also make the child services have the parent "A".

The % based aggregation rule will always be based on the number of children currently defined as dependents of "A" and tagged with the template defined by the aggregation rule ("T1" in this example). So as each "B" child is created, the status of "A" will be recalculated based on the number of children currently defined. So after the first 10, the % will be n/10 where n is the number of "bad" children -- after 20 it will be n/20, etc. until you reach a steady state of 100 children so that each calculation is n/100.

If you want to define the number of children prior to the autopopulation occurring, you would have to somehow feed that information into a more advanced aggregation calculation, perhaps a Numerical Formula Rule where an Impact policy can be used.

TBSM includes a sample policy function called "NumberOfBadChildren" that can be used on a Numerical Aggregation Rule. You could copy this function and use a modified % calculation, again assuming you have some way for the policy to acquire the number of possible children to be used in the % calculation.

Hope that helps...

Randy Brown

Hi Randy,

Thanks for your reply....

Its really helpful for me.

Regards

Neha Gupta