<?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 RLS running extremely slowly with databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68743#M33734</link>
    <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;I am brand new to databricks and am setting up my first Semantic Model with RLS and have run into an unexpected problem.&lt;/P&gt;&lt;P&gt;When I was testing my model with filters applied (where the RLS would handle later on) it runs extremely fast.&amp;nbsp; I look in Query History and I can see the where statement for my filter being applied (which hits a partition) and returns information extremely quickly.&amp;nbsp; Like in 2 seconds.&amp;nbsp; We are using a serverless connection.&lt;BR /&gt;&lt;BR /&gt;However, when I setup my RLS in Power BI and then click "view as" and look at the exact same information it takes 12-30 seconds to return.&amp;nbsp; I go into query history and the queries power bi is sending for RLS are so long that databrikcs doesn't show me the end where the where statemet should be (and the RLS filter).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm assuming RLS isn't being applied on the server level.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell me what is going on?&amp;nbsp; PBI documentation states that it appends a where statement when it sends the statement on.&amp;nbsp; But this doesn't appear to be happening.&amp;nbsp; Is this a bug?&amp;nbsp; Or do I need to do something special?&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 14:09:56 GMT</pubDate>
    <dc:creator>Clampazzo</dc:creator>
    <dc:date>2024-05-10T14:09:56Z</dc:date>
    <item>
      <title>Power BI RLS running extremely slowly with databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68743#M33734</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;I am brand new to databricks and am setting up my first Semantic Model with RLS and have run into an unexpected problem.&lt;/P&gt;&lt;P&gt;When I was testing my model with filters applied (where the RLS would handle later on) it runs extremely fast.&amp;nbsp; I look in Query History and I can see the where statement for my filter being applied (which hits a partition) and returns information extremely quickly.&amp;nbsp; Like in 2 seconds.&amp;nbsp; We are using a serverless connection.&lt;BR /&gt;&lt;BR /&gt;However, when I setup my RLS in Power BI and then click "view as" and look at the exact same information it takes 12-30 seconds to return.&amp;nbsp; I go into query history and the queries power bi is sending for RLS are so long that databrikcs doesn't show me the end where the where statemet should be (and the RLS filter).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm assuming RLS isn't being applied on the server level.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell me what is going on?&amp;nbsp; PBI documentation states that it appends a where statement when it sends the statement on.&amp;nbsp; But this doesn't appear to be happening.&amp;nbsp; Is this a bug?&amp;nbsp; Or do I need to do something special?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 14:09:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68743#M33734</guid>
      <dc:creator>Clampazzo</dc:creator>
      <dc:date>2024-05-10T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI RLS running extremely slowly with databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68755#M33737</link>
      <description>&lt;P&gt;My main question as it seems Power BI doesn't send RLS to azure databricks for filtering.&amp;nbsp; Does anyone know how I can enable this or find a workaround?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 16:02:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68755#M33737</guid>
      <dc:creator>Clampazzo</dc:creator>
      <dc:date>2024-05-10T16:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI RLS running extremely slowly with databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68756#M33738</link>
      <description>&lt;P&gt;Are you trying to use &lt;A href="https://learn.microsoft.com/en-us/fabric/security/service-admin-row-level-security#using-the-username-or-userprincipalname-dax-function" target="_self"&gt;Power BI RLS rules&lt;/A&gt; on top of DirectQuery?&lt;/P&gt;
&lt;P&gt;Can you give an example of the rules you're trying to apply? Are they static roles, or dynamic roles based on the user's UPN/email being in the dataset?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 16:15:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68756#M33738</guid>
      <dc:creator>KTheJoker</dc:creator>
      <dc:date>2024-05-10T16:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI RLS running extremely slowly with databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68761#M33740</link>
      <description>&lt;P&gt;I'm using an apps own data embedded solution for my setup.&amp;nbsp; However, to answer your question, yes I am.&lt;BR /&gt;&lt;BR /&gt;My RLS is quite simple.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[USER_ID]=&lt;/SPAN&gt;&lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;UserPrincipalName&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 17:03:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/power-bi-rls-running-extremely-slowly-with-databricks/m-p/68761#M33740</guid>
      <dc:creator>Clampazzo</dc:creator>
      <dc:date>2024-05-10T17:03:20Z</dc:date>
    </item>
  </channel>
</rss>

