<?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 Power BI Embedded Row-Level Security Direct Query and Multiple values in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Direct-Query-and-Multiple/m-p/796817#M20837</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table in my report which has a row for each organization. This organization-table is used to filter all other data tables. I want to apply a RLS filter so only data for specified organizations shows. But users can have access to multiple organizations. I.e. User1 has access to Org1, Org2 and Org3. In this case I want to input "Org1|Org2|Org3" to the RLS filter.&lt;/P&gt;&lt;P&gt;Since I want to use DirectQuery I can't use the PATH functions. Like PATHCONTAINS(USERNAME(), [OrganizationID]) works but only for Import data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out how to make this work for direct query. I think I have to split the value returned by USERNAME() and then loop over that and test against each [OrganizationID] but I don't know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have many organizations so there's no option in building an extra table with all possible combinations of users and organizations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has a clue how to fix this?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 13:19:54 GMT</pubDate>
    <dc:creator>rebecka</dc:creator>
    <dc:date>2019-09-24T13:19:54Z</dc:date>
    <item>
      <title>Power BI Embedded Row-Level Security Direct Query and Multiple values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Direct-Query-and-Multiple/m-p/796817#M20837</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table in my report which has a row for each organization. This organization-table is used to filter all other data tables. I want to apply a RLS filter so only data for specified organizations shows. But users can have access to multiple organizations. I.e. User1 has access to Org1, Org2 and Org3. In this case I want to input "Org1|Org2|Org3" to the RLS filter.&lt;/P&gt;&lt;P&gt;Since I want to use DirectQuery I can't use the PATH functions. Like PATHCONTAINS(USERNAME(), [OrganizationID]) works but only for Import data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out how to make this work for direct query. I think I have to split the value returned by USERNAME() and then loop over that and test against each [OrganizationID] but I don't know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have many organizations so there's no option in building an extra table with all possible combinations of users and organizations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has a clue how to fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:19:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Row-Level-Security-Direct-Query-and-Multiple/m-p/796817#M20837</guid>
      <dc:creator>rebecka</dc:creator>
      <dc:date>2019-09-24T13:19:54Z</dc:date>
    </item>
  </channel>
</rss>

