Please can someone give the step by step points in an easy way to convert a Ragged Hierarchy to Balanced Hierarchy in Anaplan. Thanks!
@gautamgurwara
You create a module based on the "flat" list, say Cost Centers where you know which member is the parent. Such as below:
Create a module, again based on the flat list, but it will be in 4 different sections:
Parent:
This is where you need to understand all of the ancestors of the member, so you do lookups to the above and have line times for every level. So, if it is going to be 8 levels, you need to have 8 line items:
Ragged:
Based on logic, you will need to understand which member is at the top of the list and what comes next. At the same time, you will need to make sure the member is not equal to the previous member. This is essentially recursive logic
Balanced:
Now that you have the Ragged look, now we need to balance it out to make sure the parent node is repeated until the detailed member is in the correct level. For instance, if AP Purchasing is in level 2 of the ragged, but is a base member, then it needs to be pushed to the bottom.
IsFirstOccurrence:
This is where you use IsFirstOccurrence() to get the first occurrence of a member in that level in order to create views to build your hierarchy
Then you define your views:
Lastly, you build your Actions based off these views.
Hope that helps,
Rob
Here are the module (attached) and the screenshots below. I did not include the view piece you asked for because that is in the above post.
Step 3 formats - you can get those from the above post.
If you have any questions, please reference the 305 video that @Misbah referenced as that video is based on these files (I recorded that video about 4 years ago).
Let me know if you have any questions and please remember to tip the waiter at the door 🙂
Please look at the previous pictures in this thread for the formats, they are all there. You can only do a lookup on list formatted line items or dates/time periods, so the answer is list formatted. They are blue because the data was loaded from a source system. The Cost Center Flat list is flat, no hierarchy.
please watch the 305 video again, it explains it all.
Watch this video
Hub Model Hierarchy Management (305) - Anaplan Community
@Misbah - Thanks.
Thank You so much @rob_marshall for the detailed info. I want to request you if you can please share some files:
I really appreciate all your help. Thank you!
Thank You so much @rob_marshall for the files and the screenshots. It is really very helpful. It is very kind of you to share the files. Thanks a lot! 🙂 🙏
Hi @rob_marshall
Please can you answer the below questions.
Thanks again for all your help.
Ok. Thanks. Really appreciate your help.
Hi, @rob_marshall @Misbah @gautamgurwara
Thank you so much again for the step by step instruction.
Is there a way to create a dynamic filter to filter out those dummy list members for reporting purposes? I tried to create some logic at the lowest level but struggled to make it work at other levels.
Many thanks for your help.
Lily
Hello @rob_marshall , Thanks for your detailed explaination. Exsiting data file links were expired. Could you please provide the recent file links or files?
Thanks in advance!
@VRK96
The link to the video is here: https://learning.anaplan.com/totara/catalog/index.php?catalog_fts=305&orderbykey=score&itemstyle=narrow
Files are here:
Thank you very much @rob_marshall for providing data files
Hi All,
Thanks for the examples. This is the part am struggling with.
Step 1: (We have the Cost Centre Flat - Properties Module dimensioned by the List Cost Centre Flat )
Step 2: (The 'Parent H1' is formatted as the List Cost Centre Flat)
Step 3: Properties'.Count[SUM: 'Cost Center Flat - Properties'.'Parent H1'] (And finally below in we do a sum [SUM: 'Cost Center Flat - Properties'.'Parent H1'] using 'Parent H1')
I tried loading the items into 'Parent H1' using the Cost Centre Flat list in the format for the line item but it does not work.
Please could you kindly explain how that part is done/achieved. Step 1 and Step 2 thank you.
Hi @rob_marshall ,
Please is the Parent H1 formatted as a list? if so what is the list called or was it created separately?.
What is the name of the Cost Center Flat - Properties List is called?.
Thank you.
@Monpero
I replied to your other post on the same topic:
Hello, I’m running into a recurring issue when importing CSV files into Anaplan, specifically with dates in February for the years 2028, 2029, and beyond. Here’s what’s happening: In Excel, the date format is set to Custom (e.g., 2/26/2025). When imported into Anaplan, the date is interpreted as 26-Feb, where: Month = Feb…
Hey everyone, I wanted to share the Anaplan Python SDK with you. It's a Python Library that wraps all Anaplan APIs and makes it easier to interact with Anaplan programmatically. It is mostly designed with Data Integration Scenarios in mind, but it does support all APIs including ALM, SCIM, Audit, and Cloud Works. Please…
Hello, I am receiving an 'Anaplan Upload Failed' Status Description when testing my integration with a Big Query dataset. The integration imports data from BQ to our Anaplan model. No other details given in the error log. I suspect that Cloudworks is not even picking up the file but am not sure what we did wrong on the set…