Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 months ago
Solved

Role level Security for Group Alternate Access

Employee Name Requester-Approver Email Lookup Approver Group  Lookup Requester Group  Department Dept Invoice Number Aida  [email protected] 1   D A 13 Richard [email protected] 1   Q B...
  • Mauro89's avatar
    9 months ago

    Hi Anonymous,

     

    if I got it right, this should work. 

     

    1. Create a single GroupKey column

     

    In Power Query or DAX (calculated column):

    GroupKey =

    IF(

        NOT ISBLANK([Lookup Approver Group]),

        [Lookup Approver Group],

        [Lookup Requester Group]

    )

    Jay will have GroupKey = BLANK(), which is desired.

     

    2. Create an RLS role

     

    Use this DAX filter expression:

    [GroupKey] = 

        CALCULATE(

            MAX('Table'[GroupKey]),

            'Table'[Employee Name] = USERPRINCIPALNAME()

        )

     

    If this works, leave kudos or mark it as solution. 

    Best regards!