Forum Discussion

aashritsingh's avatar
aashritsingh
Helper I
2 years ago

RLS Formula not working

Hello,

 

We are trying to implement RLS to our dataset. An employee can see their own data if they have a reporting manager, A manager can see his team's data,but, not others -> this is the requirement.

 

We used the hierarchy table which has reporting information. 

This is our RLS filtering: 
Pathcontains(Hierarchy[Path],Maxx(Filter(Hierarchy,[EMAIL] = USERPRINCIPALNAME()), Hierarchy[AGENT]))

 

We followed the exact method as described here: https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

 

We are getting syntax error as follows, we followed so many documentations and articles on the same we are unable to get any solution.

 

 

Please advice on this asap.

 

Thank you.

4 Replies

  • _AAndrade's avatar
    _AAndrade
    Resident Rockstar

    Hi,

    My advice is using this DAX formula on a visual card and see what you're getting, because it seems you have a issue in your dax formula.

  • _AAndrade's avatar
    _AAndrade
    Resident Rockstar

    Ok. I didn't see the error message. It's seems a issue on your Path column. You have the same kind of structure that has on the radacad article? 1|3, for example?

    • BLSR09's avatar
      BLSR09
      Frequent Visitor

      Yes, we have the same kind of Organizational Hierarchial data.