Hi - I have an org chart where I am trying to calculate the number of people by their role. When the org chart is expanded the formula works as expected but when the chart is collapsed it only counts the visible shapes. How can I get it to count all shapes whether they are visible or not?
Formula Results Change when Org Chart Collapsed in Lucidchart
Best answer by Micah
Thanks for your response and describing what formulas you're currently using. I recommend taking a look at this community post which addresses a very similar question. Because you're displaying these numbers by role in a shape that is separate from your org chart, you'll need to utilize two formulas - one to sum the number of employees by role type using a combination of DOWNSTREEMDEEP and graphnodes (which will allow the calculation to perform correctly even when the org chart is collapsed) and a second to pull those sums into your separate table to display them.
In the linked example the user is summing direct reports but you can replace the custom field in that instance - "Direct Report Count" - with yours that contains the employee role. Please let me know if you have any additional questions and refer to our Formulas documentation for any specific formula references.
Create an account in the community
A Lucid account is required to interact with the Community, and your participation is subject to the Supplemental Lucid Community Terms. You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.
Log in to the community
A Lucid account is required to interact with the Community, and your participation is subject to the Supplemental Lucid Community Terms. You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.
Log in with Lucid
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.



