Calculation Help - Is there a function or a way to count number of child of a list member
For eg, if I have State - City Hiearchy
How can I count how many city does a state have using a formula?
@sagarkpr
Yes, there are a couple of ways to do it…If you already have the hierarchy created (Cities rolling up to State), create a line item in a module named Count (formatted as number) and hardcode the formula to 1 with the summary defined as SUM. At the State level, you will have a total.
On the other hand, if you have all Cities and States in the same "flat" list, then in a SYS Module dimensionalized by that flat list, make sure you have a line item named Parent (which is loaded in from an action) and is a list formatted to the flat list, and the line item Count hardcoded to 1. In another module which is dimensionalized by the same Flat list, create a line item name Nbr of Children with the following formula: SYS Flat list.Count[sum:SYS Flat List.Parent]. This assumes your module is named SYS Flat List.
Flat List Module:
Calculation Module:
Got it, This is how I was thinking but wondering if there is a formula I could directly use. Thanks for help
Can someone help me i am unable to login anaplan portal using my credentials
Dear Hive Mind, Do we have a way to get the history of a particular List Item, from its creation into a model up until its removal ? I am trying to chase when / how an item has been added into a model and how / when it would have been deleted and then recreated with the same code. Is there a pattern (manual or API) to get…
I have an action in a process which is getting failed since 2 days when run via CloudWorks with below error . No issues when run manually . Same error occurs when run manually but as a warning "Import complete but with failures" This action is running since almost a year without any issue . No change has been made to…