Forum Discussion

matdub40's avatar
matdub40
Helper III
4 years ago
Solved

How to implement line-level security in an Analysis Services model?

I have a data model that is like this:   Joins are done between tables on storenumber and storename. I would like to give access to the stores staff but they only see the sales of their ow...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi matdub40 ,

    It seems there is nothing wrong with the formula. Row-level security (RLS) with Power BI can be used to restrict data access for given users. Filters restrict data access at the row level, and you can define filters within roles. In the Power BI service, members of a workspace have access to datasets in the workspace. RLS doesn't restrict this data access.

     

    For Analysis Services or Azure Analysis Services lives connections, you configure Row-level security in the model, not in Power BI Desktop. The security option will not show up for live connection datasets.

     

    Please check the role in the workspace. Please check where the Y2_Stores[email] is the same as the current logged on Windows user name, and Y2_Stores[storenumber] is the same as the Y2_Sales[detail_number]).

     

    Please check the RLS "view as a user " on the desktop. 

     

    If it still does not help , please provide your pbix file without privacy information for us testing or provide more details with screenshots.

     

    Best Regards

    Community Support Team _ Polly

     

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