<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is RLS what I need? in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747207#M11065</link>
    <description>Wow thats fantastic, thank you all so much.&lt;BR /&gt;I'm going to have fun with this now!!!!</description>
    <pubDate>Tue, 23 Jul 2019 23:36:30 GMT</pubDate>
    <dc:creator>philburns</dc:creator>
    <dc:date>2019-07-23T23:36:30Z</dc:date>
    <item>
      <title>Is RLS what I need?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/746538#M11049</link>
      <description>&lt;P&gt;I'm planning to close down a load of SQL driven .asp pages and replace them with Power BI reports. Currently I make sure that a user gets a unique dataset with a SQL query such as SELECT * FROM Table1 WHERE Field1=USERID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make sure that this functionality is replicated in power BI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is RLS what I need to use, or something else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And would it be best to apply RLS to one query to select the USERID and then link that query with each of the various other queries which produce various datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 08:44:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/746538#M11049</guid>
      <dc:creator>philburns</dc:creator>
      <dc:date>2019-07-23T08:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is RLS what I need?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747056#M11060</link>
      <description>&lt;P&gt;RLS will do what you need.&lt;/P&gt;&lt;P&gt;Setting up RLS in the editor is just a GUI for a query. It shows you the list of tables in your dataset, and you can filter on any combination of the fields once certain criteria are met, ie UserID. I think the one problem you may have is I believe you will have to set up a role, for every single one of your users (eg UserID = 'ABC' Filter table for 'ABC' ... UserID = DEF Filter table for 'DEF, etc). I &lt;STRONG&gt;may&lt;/STRONG&gt; be wrong, but I believe the filter 'where clause' is static, so you cant build a one fits all dynamic role.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 19:21:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747056#M11060</guid>
      <dc:creator>cbarrettEM</dc:creator>
      <dc:date>2019-07-23T19:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is RLS what I need?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747096#M11062</link>
      <description>Thanks for that.&lt;BR /&gt;I haven't come across role settings yet - where can I find out about that and where are they defined?</description>
      <pubDate>Tue, 23 Jul 2019 20:15:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747096#M11062</guid>
      <dc:creator>philburns</dc:creator>
      <dc:date>2019-07-23T20:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is RLS what I need?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747186#M11064</link>
      <description>&lt;P&gt;If you click on the Modelling tab in Power BI there is a manage roles button which brings up the following dialog box&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-07 manage roles.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/179748i3A5E91E7D0EC2499/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-07 manage roles.png" alt="2019-07 manage roles.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the role above users in the role will only see the one "SecureCostCentre" where it is equal to 1111 and this filter will flow down to any related tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This filter can be any valid DAX expression. In your case you could use the USERNAME() function in your filter to make a single dynamic role if you have a table in your model with a list of usernames that is then also related to the other tables in your model. So if you had a 'Users' table with a [Login] column you could create a filter expression like the following on your Users table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Users[Login] = USERNAME()&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 22:50:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747186#M11064</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2019-07-23T22:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is RLS what I need?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747207#M11065</link>
      <description>Wow thats fantastic, thank you all so much.&lt;BR /&gt;I'm going to have fun with this now!!!!</description>
      <pubDate>Tue, 23 Jul 2019 23:36:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Is-RLS-what-I-need/m-p/747207#M11065</guid>
      <dc:creator>philburns</dc:creator>
      <dc:date>2019-07-23T23:36:30Z</dc:date>
    </item>
  </channel>
</rss>

