I have a numbered list, which has the same names (display names). These same name line items then have different child.
The values of the same name list items needs to be added up to only one list item which has the latest PO date in the same list.
This is the source module that has the same parent names with different child names in it. Also the values of the same PO’s are differentiated in terms of the PO Creation Date.
The destination module is:-
Here the values needs to be added up. The values that are shown here are wrong. For the PO 53852328_1 which has a similar name but the values are different; hence the value for 53852328_1 should be 20+40= 60 for one PO and the 2nd should remain the same value depending on the PO Creation Date(here 1st one should remain same and the 2nd repeated PO should have the value of 60). I am trying to figure out how to get the solution. Any help or suggestions would be appreciated.
The 1st PO - 5385328_1 has the amount = 10, the 2nd PO - 5385328_1 has the amount = 30.
1st PO creation date is old & we are not worried about that, the 2nd PO creation date is new and I want to add the Amount from 1st PO to 2nd PO. So at the end 2nd PO Amount = 40. (The correction with respect to the screenshot).
I noticed that your source module was using a composite hierarchy, and Indeed my example uses a flat list. I believe it does not change neither the nature of the issue nor the solution and I assumed it will serve the purpose of illustrating a solution. Sorry for not making it clear enough.
I believe we are totally on the same page, just bear in mind that in your source module, you can aggregate all the invoice numbers (level 2 of your hierarchy) to PO NUM (level 1 of the hier.) just by leveraging Anaplan's automatic aggregations across hierarchy's items. This will give you totals of Invoice amounts at PO level, right?
Then, at target module, by using the new list with only unique PO NUM items (As explained in my previous post, together with FINDITEM and SUM) you can sum up all the amounts of the same PO NUM item in just one unique item (eg: make the item "532838_1" display the aggregation of all the items "532838_1" from the numbered lists = 89,000 + 83,655). I am sure that just by following the steps you will get to obtain the results you are seeking.