Forum Discussion

KK2012's avatar
KK2012
New Contributor III
5 months ago

Move member from One Parent to other parent member

Hi Team,

We have client requirement that, Member needs to be moved from one parent to other parent. In this process, it should not impact rollup data for old parent for historical months. If any handle this in the past, please share your thoughts on this or any inputs would be appreciated. Thank you.

 

  • Hi, can I ask which dimension does this relate to?

    If this is the entity dimension then you can use the relationship settings (percent consol etc.) and vary them by time. So the member would remain under both parents but only consolidate to the appropriate one based on the time period.

    If however, this is any other dimension, that approach won't be possible. Since the parents are aggregated on the fly, you will need to maintain alternate hierarchies. Users can then report on the old and new structures as required.

  • KarlT's avatar
    KarlT
    Contributor III

    Hi, can I ask which dimension does this relate to?

    If this is the entity dimension then you can use the relationship settings (percent consol etc.) and vary them by time. So the member would remain under both parents but only consolidate to the appropriate one based on the time period.

    If however, this is any other dimension, that approach won't be possible. Since the parents are aggregated on the fly, you will need to maintain alternate hierarchies. Users can then report on the old and new structures as required.

  • I think you can use these functions and give it a try in Extender BR
    Brapi.Finance.Dim.GetDimPk(si, "DimName")  'dimPk

    Dim relPk As New RelationshipPk(dimTypeId.<Dimtype>, parentMember.Member.MemberId, childid)  'relationshipPks

    Dim relPositionOpt As New RelationshipPositionOptions()
    relPositionOpt.MovementType = RelationshipMovementType.InsertAsLastSibling

    BRApi.Finance.MemberAdmin.CopyOrMoveRelationships(si, dimPk, relationshipPks, newParentId, isCopyNotMove, relationshipPositionOptions)

    Dim rel As New Relationship(relPk, scenarioDim.DimPk.DimId, RelationshipMovementType.InsertAsLastSibling, 1)
    Dim relInfo As New RelationshipInfo(rel, Nothing)

    BRApi.Finance.MemberAdmin.SaveRelationshipInfo(si, relInfo, relPositionOpt)

     

    Removing relationship can hamper your historical data if not locked as per my understanding. If you don't want to loke the data, I would suggest you create historical COA with a New Member adding a suffix and copy the data from the original member to it and then move the original member to new parent. 

    I would also like to see of anyone has other option it they encountered it before.

  • KK2012's avatar
    KK2012
    New Contributor III

    Thank you all for your inputs and suggestions on this. This is for our Account dimension changes.