Forum Discussion

vamsikrishna140's avatar
vamsikrishna140
Icon for Microsoft Employee rankMicrosoft Employee
3 years ago

Parent child hierarchy count children

Hi - i am having two tables one table contains users of perticular app with their user id. another table contains regional head,regional head_id, PM's under him and their id's, like that till the last level. how should i map them so that i will get the count level wise on how much persentage of employees under them are users of app or not

2 Replies

    • vamsikrishna140's avatar
      vamsikrishna140
      Icon for Microsoft Employee rankMicrosoft Employee

      Hi- Sorry for the delay. i am attaching the sample data and my issue below. please help me with a solution.

       

      i have org employee hierarchy info like this

      indexreportingName
      1vamsi 
      2srikantvamsi
      3maheshvamsi
      4mithunvamsi
      5srijitsrikant
      6shankarsrikant
      7patakmahesh
      8srikumarmahesh
      9prernamithun
      10nagarajamithun
      11abhishekmithun
      12sahibiprerna
      13atulabhishek
      14maneshsrikumar
      15mayurpatak

      and i have another data with the index who are particular users of some app. lets say below are users

      index
      1
      10
      12
      3
      6
      7
      8
      15

      now i want see how many users/persentage of users under them uses this app so that he can motivate them to use it.
      As vamsi is the head i should know how many users/persentage of users under him are users in a metrix so that when i go through hierarchy there are 3 people reporting to vamsi and i should know how many users/persentage of users under them uses the app.