<?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: LOOKUPVALUE overrides RLS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195927#M19020</link>
    <description>&lt;P&gt;Answer is still the same. If the tables are unrelated then you need to apply the RLS rules twice, once for each table.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 19:33:42 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-07-01T19:33:42Z</dc:date>
    <item>
      <title>LOOKUPVALUE overrides RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195715#M19012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;ContactOrigin:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;ContactDestiny:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both tables are not related inside the model (even though they have the "Id Origin" in common). In Power BI, both tables have RLS applied on Company Id Origin and Company Id Destiny, respectively. So, when I apply RLS for the company with Id 80022233 (BBB Ltda), both tables are filtered and that's ok:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But what I need is the "Id Origin" field in Destiny Contact Table shows only values that belong to BBB Ltda in Contact Origin Table (in this case, "567890" doesn't belong to BBB Ltda in Origin Contact table). I tried to create a calculated column to solve this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Id Origin Lookupvalue = LOOKUPVALUE( ContactOrigin[Id Origin]; ContactOrigin[Id Origin]; ContactDestiny[Id Origin] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the outcom is the same, which means that LOOKUPVALUE overrides the RLS security:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is there another way to solve this issue? This is what I expected to see:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:44:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195715#M19012</guid>
      <dc:creator>montoyesco</dc:creator>
      <dc:date>2020-07-01T20:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALUE overrides RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195789#M19014</link>
      <description>&lt;P&gt;If you don't have an active relationship how is RLS supposed to know that it needs to filter the other table?&amp;nbsp; In that case you need to apply the RLS rules to BOTH tables.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 17:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195789#M19014</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-01T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALUE overrides RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195845#M19016</link>
      <description>&lt;P&gt;I put this case as simple as I can. In my real model, these two tables doesn't exists. In the real one, I have two tables which are filtered with RLS, but I need both unrelated. Maybe the following link will explain you this case better than me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Lookupvalue-override-RLS/td-p/579361" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Lookupvalue-override-RLS/td-p/579361&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I say, I just try to "simplified" the case. In the link above it's explained, but in essence, it is the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 18:28:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195845#M19016</guid>
      <dc:creator>montoyesco</dc:creator>
      <dc:date>2020-07-01T18:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALUE overrides RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195927#M19020</link>
      <description>&lt;P&gt;Answer is still the same. If the tables are unrelated then you need to apply the RLS rules twice, once for each table.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 19:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1195927#M19020</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-01T19:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: LOOKUPVALUE overrides RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1202046#M19260</link>
      <description>&lt;P&gt;So.... Don't you have the answer to this problem?.... anyone else? please?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 17:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LOOKUPVALUE-overrides-RLS/m-p/1202046#M19260</guid>
      <dc:creator>montoyesco</dc:creator>
      <dc:date>2020-07-05T17:47:00Z</dc:date>
    </item>
  </channel>
</rss>

