Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

dynamic RLS

hello I have this table with the accesses that each user must have. furthermore i created this rule, however with use the maxx is only the last value is returned example: [email protected] should h...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    6 years ago

    Hi Anonymous ,

     

    As the formula in the link you refer to you should create:

     

     

    Org Level 4 = LOOKUPVALUE (
        User[Email],
        User[Name],
        PATHITEM ( 'User'[Hierarchy], 4)
    )
    
    Org Level 3 = LOOKUPVALUE (
        User[Email],
        User[Name],
        PATHITEM ( 'User'[Hierarchy], 3)
    )
    
    Org Level 2 = LOOKUPVALUE (
        User[Email],
        User[Name],
        PATHITEM ( 'User'[Hierarchy], 2)
    )
    
    Org Level 1 = LOOKUPVALUE (
        User[Email],
        User[Name],
        PATHITEM ( 'User'[Hierarchy], 1)
    )

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai