Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Access level hierarchy

hi All

 

here the condition is

1 EVP has to see all the below levels (i.e he has to see (Org_Unit_EVP_ID,Org_Unit_VP_ID,Org_Unit_Level_1_ID,Org_Unit_Level_2_ID)

2  VP has to see his Org_Unit_VP_ID and as well as below levels ( i.e  Org_Unit_VP_ID,Org_Unit_Level_1_ID,Org_Unit_Level_2_ID)

3 Level 1 has to see his Org_Unit_Level_1_ID as well as below levels.( Org_Unit_Level_1_ID,Org_Unit_Level_2_ID)

4 Level 2 has to see his Org_Unit_Level_2_ID and he should not see rest of above levels 

5 Org_key is common column for all the tables

 

EmailOrg_Unit_EVP_IDOrg_Unit_VP_IDOrg_Unit_Level_1_IDOrg_Unit_Level_2_IDAccess LevelOrg_Key
[email protected]59715700   EVP5971640754064374
[email protected]5971603659716036  VP5971637459716482
[email protected]597160365971603659716080 VP-15971637459716394
[email protected]59716036597160365971626459716085VP-25971608059716085
[email protected]59716036597160365971635259716230VP-25971626459716279

 

can anyone helpout with this please share powerbi file 

 

Regards

Dilip

5 Replies

  • Daniel29195's avatar
    Daniel29195
    Community Champion

    Anonymous 

    you need to restruture your table if possible as follow : 

     

       child                      parent 

         B                              A

         C                             A

         D                              B

        E                                B

        F                                D

        A                               

     

    this way, you can use builint hierarchy dax functions that in turn will help achieve what you want .

     

     

    hope this helps 

     

     

    If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution !
    It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠