I am building canvas Power App with Sharepoint as a data base. It is employee data with hierarchical structure based on manager personal ID. Hierarchy can be up to 6 levels. List has column "Approved". Data in the Power App is personalised and manager can see only organisation under him.
I need to be able to count how many employees are approved in the manager organisation. So if manager have five levels under him, I need to loop through all those 5 levels and check if value of the column approved is "Yes".
I can easily do it with two levels down by using nested galleries, but since power apps do not support more than two levels, I'm hitting a wall here.
Anyone had worked on something similar and could guide on how to achieve what I need?