Forum Discussion

Clandestine's avatar
Clandestine
New Member
6 years ago
Solved

Using Roles to filter data

So I am grabbing data from a table with various fields one of them being 'Username'.   I clicked on Modeling --> Manage Roles and added a new Role 'MyData'. I then added a DAX expression to filter...
  • Clandestine's avatar
    Clandestine
    6 years ago

    Okay so I have managed to add Users now to my Row Level Security.

     

    For all those who are struggling with this bit you need to navigate to the PowerBI service and do it there.  You can't do it in the PowerBI Desktop app.

    Click on the Workspace where your report is in and you should have a short menu 'Dashboards, Reports, Workbooks, Datasets.

    Click on Datasets and that is where the Elipses is i.e. the three dots '...' .  You click on the three dots and select Security and everything else then makes sense.

     

     

    So having added myself in and selected 'Test as Role' I can see that it works brilliantly.  However, when I navigate to the report from Workspace I still see all Records in the table.  Why?

     

    (Just to make it clear, I've opening up PowerBI service.  Selecting My Workspace --> Clicking on Reports -->Selecting my Report and...all records rather than just mine.  If I select My Workspace --> Datasets --> ... --> Security --> RLSName ... --> Test as role  The report shows perfectly!)