28 Apr’16

Power BI

Row Level Security using Power BI


Power BI Desktop Tool, Power BI Online Service

Purpose of the setup:

Purpose of this blog is to demonstrate Row Level Security (RLS) using Power BI


To demonstrate this, we have created a Power BI Desktop file and published it to Power BI Online account.

Before starting, let us assume a scenario where there is a Sales Organization.

A Sales organization uses CRM data. They need to provide Sales data by Role to different person as per their job profile or control. CEO of a Sales organization can view data for all the opportunities. Sales Manager can view only his related sales data i.e. opportunities created by the Sales Person under his team. Sales Person can view only his sales opportunities.

Fig 1: Scenario

This can be achieved using RLS in Power BI.


Here we have created a Dashboard with sample data for a Sales Organization that deals with Opportunity data from CRM.

Fig 2: CEO Dashboard

This is the Opportunity dashboard that shows the complete CRM Opportunity data of the organization.

Now if the CEO wants to restrict the Sales Manager and Sales Person to view only at their level i.e. the Sales Manager can view data under his team and a Sales Person can view only his data as an owner.

For achieving this the CEO can share the dashboard to the person and then can assign the role.

Step 1:

Select the dataset from which the row level security has to be applied.

There is a new option called SECURITY, which we find once we click on the ellipses (…) next to the dataset.

Fig 2: Security Option


Step 2:

Now click on Create New Role then add the email address of the person (which he uses as login id for his Power BI account) and then click on Add.

Fig 3: Adding Members to RLS


Step 3:

After adding the members click on Rules to provide the filtering of data based on DAX filters.

In Rules we have to select the table(s) on which we have to apply filter and then write the DAX Function in the DAX Input box.

Finally click on SAVE.

Fig 4:  Rules Option


Step 4:

Now we are done with RLS in Power BI, to view the result we can go to the person’s Power BI account and find the result.

Note: It may happen that the result is not visible immediately. So for that we can refresh the Power BI dashboard once.

In this case the dashboard has been already shared with the Sales Manager who according to the scenario is the Sales person in our case.

Fig 5: Sales Manager Level Dashboard

Similarly, CEO can apply RLS for a sales person to restrict to his data on dashboard.

Fig 6: Sales Person Level Dashboard

This is how RLS is achieved using Power BI. Since, this is in Preview there are few limitations too.


  1. You can define RLS only on the datasets created using Power BI Desktop client
  2. If you make a change to your PBIX file, and republish to the service, you will need to re-create RLS
  3. Defining RLS in a group workspace is not supported
  4. You cannot add security groups or distribution lists to the member list
  5. Q&A and Cortana is not supported with RLS


Written by

Team Member


2 thoughts on “Row Level Security using Power BI”

  1. Thanks for the document.
    I am newbie to the power bi.
    It really helps a lot.
    I would like to know that, i am not able to get the security option in power bi as a desktop.
    Is it for a trail version or for the paid version.
    Please suggest me.

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Integrate Dynamics 365 for Customer Engagement Apps with Microsoft Teams

    18 June’ 2019

    Before getting into details, firstly I would like to talk about Microsoft Teams. If you’re familiar with MS Teams, you...

    Read more
  • Applying Default / Mandatory Dimension in NAV / Business Central

    17 June’ 2019

    Introduction: In this blog, I aim to provide how to set Mandatory Dimensions on Items, Customers, Vendors, and G/L Accou...

    Read more
  • Automatically adding dimensions from Shortcut Dimension from Excel Import in Microsoft Dynamics NAV / Business Central

    17 June’ 2019

    Problem Statement: I have a requirement where the contents of the General Journals are to export to Excel and also can c...

    Read more
  • Using “startswith” Filter Query in MS Flow

    12 June’ 2019

    Introduction This blog explains how to use “startswith” filter query in MS Flow. Use Case Using MS Flows to retrieve...

    Read more
  • Print pro-forma invoice in Dynamics 365 Finance and Operations

    11 June’ 2019

    In this article I am going to demonstrate how to view/print  pro-forma invoice. A pro forma invoice is an invoice that ...

    Read more
  • We respect your privacy.
  • This field is for validation purposes and should be left unchanged.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.