<?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: Dynamic RLS and using DirectQuery in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4770474#M182702</link>
    <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628600" data-lia-user-login="NielsBakker" class="lia-mention lia-mention-user"&gt;NielsBakker&lt;/a&gt;&amp;nbsp;, hope you are doing great. The answers from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177566" data-lia-user-login="speedramps" class="lia-mention lia-mention-user"&gt;speedramps&lt;/a&gt;&amp;nbsp;seems appropriate. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 10:46:50 GMT</pubDate>
    <dc:creator>v-hashadapu</dc:creator>
    <dc:date>2025-07-21T10:46:50Z</dc:date>
    <item>
      <title>Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768402#M182626</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177566" data-lia-user-login="speedramps" class="lia-mention lia-mention-user"&gt;speedramps&lt;/a&gt;&amp;nbsp;again thank you very much for your help. Really appreciate your time and help for trying to solve this issue. I hope I've explained my issue as clear as possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Set up flexible (dynamic) Row-Level Security (RLS) in Power BI using a UserSecurity table that filters a FactTable.&lt;BR /&gt;When a user logs in, the UserSecurity table should filter to that user, which in turn should filter the FactTable to only show data the user is allowed to see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All tables in the data model use &lt;STRONG&gt;DirectQuery.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;The UserSecurity table must support wildcards to indicate full access, in this case I use 0. The reaon for this is that I want to avoid that the table will get extremely large.&lt;UL&gt;&lt;LI&gt;Example: If a user has access to all ResourceGroups within a Subscription, the ResourceGroup field should be 0.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;A key use case to support is (please see attached Excel file (UserSecurity) for the full overview:&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;User 16&amp;nbsp;&lt;/STRONG&gt;has access to:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;All ResourceGroups&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp;&lt;STRONG&gt;Subscription 17&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Only ResourceGroup 15348&amp;nbsp;&lt;/STRONG&gt; in&amp;nbsp;&lt;STRONG&gt;Subscription 25&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Limitations&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Because I’m using &lt;STRONG&gt;DirectQuery&lt;/STRONG&gt;, I cannot use functions like CALCULATE or COUNTROWS in Manage Roles for RLS (they are disabled).&lt;/LI&gt;&lt;LI&gt;If a relationship between the tables is needed, a many-to-many relationship is needed between UserSecurity and the FactTable because:&lt;UL&gt;&lt;LI&gt;Multiple users in UserSecurity&lt;/LI&gt;&lt;LI&gt;Each user can have multiple different access rules (some full access via wildcard, some partial)&lt;/LI&gt;&lt;LI&gt;However, many-to-many relationships are problematic with DirectQuery&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;What I've Tried&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It works perfectly in Import Mode&lt;STRONG&gt; (use Test 1 as Role)&lt;/STRONG&gt;, but I must use DirectQuery. Please see attached PBI how it should work.&lt;/LI&gt;&lt;LI&gt;I’m stuck translating the logic into a DAX approach that works in DirectQuery mode with these constraints.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Ask&lt;/STRONG&gt;&lt;BR /&gt;How can I implement this kind of dynamic RLS with wildcard support in DirectQuery mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached 2 Excel files and a PowerBI file that can be used. Sorry, I don't know how to share a DirectQuery model because of privacy concerns. I hope this Excel files gives enough context.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to download files:&amp;nbsp;&lt;A href="https://we.tl/t-PONAaflP8Q" target="_self"&gt;https://we.tl/t-PONAaflP8Q&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again, and appreciate the help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Niels&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 11:47:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768402#M182626</guid>
      <dc:creator>NielsBakker</dc:creator>
      <dc:date>2025-07-18T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768563#M182630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;limitations are due to the need to translate in SQL complex DAX statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the CALCULATE and COUNTROWS calculations you need to perform are working on facts/dimensions/bridges or on the security table? I am asking because you might consider (maybe) to import only the security table if the&amp;nbsp;CALCULATE and COUNTROWS calculations you need to perform and on the security table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Othwerwise either you import (not an option, if I understand correclty) or you write an old style DAX, that will be painful though&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 13:28:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768563#M182630</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-07-18T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768598#M182632</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1287762" data-lia-user-login="FBergamaschi" class="lia-mention lia-mention-user"&gt;FBergamaschi&lt;/a&gt;&amp;nbsp;thanks for your response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to import only the security table, and use Direct Query for the FactTable. But in Manage Roles, the DAX is still referencing to the DirectQuery table and therefore, is not allowed to use unfortunately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But thanks for thinking with me!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 13:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768598#M182632</guid>
      <dc:creator>NielsBakker</dc:creator>
      <dc:date>2025-07-18T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768670#M182634</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628600" data-lia-user-login="NielsBakker" class="lia-mention lia-mention-user"&gt;NielsBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This&amp;nbsp;example&amp;nbsp;shows&amp;nbsp;how&amp;nbsp;to implement&amp;nbsp;RLS&amp;nbsp;so&amp;nbsp;a&amp;nbsp;person&amp;nbsp;can&amp;nbsp;be&amp;nbsp;given&amp;nbsp;access&amp;nbsp;to&amp;nbsp;just&amp;nbsp;some&amp;nbsp;or&amp;nbsp;all&amp;nbsp;stores&amp;nbsp;in&amp;nbsp;a&amp;nbsp;country.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;Security&amp;nbsp;table&amp;nbsp;stipulates&amp;nbsp;who&amp;nbsp;has&amp;nbsp;access&amp;nbsp;to&amp;nbsp;which&amp;nbsp;stores&amp;nbsp;in&amp;nbsp;which&amp;nbsp;countries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;*&amp;nbsp;asterisk&amp;nbsp;denotes&amp;nbsp;that&amp;nbsp;a&amp;nbsp;person&amp;nbsp;has&amp;nbsp;access&amp;nbsp;to&amp;nbsp;all&amp;nbsp;stores&amp;nbsp;in&amp;nbsp;the&amp;nbsp;designated&amp;nbsp;country&amp;nbsp;unless&amp;nbsp;then&amp;nbsp;is&amp;nbsp;an&amp;nbsp;"X"&amp;nbsp;in&amp;nbsp;the&amp;nbsp;block&amp;nbsp;column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note&amp;nbsp;that&amp;nbsp;several&amp;nbsp;countries&amp;nbsp;may&amp;nbsp;have&amp;nbsp;identical&amp;nbsp;store&amp;nbsp;names&amp;nbsp;but&amp;nbsp;they&amp;nbsp;are&amp;nbsp;separate&amp;nbsp;stores.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;View&amp;nbsp;As&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;function&amp;nbsp;to&amp;nbsp;test&amp;nbsp;Mark,&amp;nbsp;Peter,&amp;nbsp;Sue,&amp;nbsp;Tim,&amp;nbsp;Katy&amp;nbsp;and&amp;nbsp;Jane&amp;nbsp;have&amp;nbsp;the&amp;nbsp;correct&amp;nbsp;restricted&amp;nbsp;access&amp;nbsp;to&amp;nbsp;the&amp;nbsp;Fact&amp;nbsp;table&amp;nbsp;secrets.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I know that you require Direct Query and I will try answer that later.&amp;nbsp;&lt;BR /&gt;This solution works for Import Mode, Fabrix Driect Lake and potentially a Composite Mode.&lt;/P&gt;
&lt;P&gt;You will need to rename the tables and columns names for your Resources Groups and Subscriptions.&amp;nbsp;&lt;BR /&gt;You will also need to have the * and X&amp;nbsp; to your&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;I and 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://1drv.ms/u/c/dbadbed48d511303/Eb1Nr8nTYDFBuy3HmU0fpoIB_Bj9hhevXrUU5HeV2bS4vg?e=9E38lf" target="_self"&gt;Click here to download PBIX from OneDrive&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that Security and Fact table have a Many to Many relation with Both cross filter direction.&lt;/P&gt;
&lt;P&gt;This will generate a red triangle warning, which you can ignore because it is ok in this scenario.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Manage Roles the Securiry table has a RLS (Row Lecve; Security) Filter for the login username&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas the Fact table uses DAX to determin the RLS Filter&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the DAX RLS filter logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// create a temp table allowed stores for the User and Country
VAR allow = 
   CALCULATETABLE(
    VALUES(Security[Store]),
    Security[User] = USERNAME(),
    Security[Block] &amp;lt;&amp;gt; "X"
    )

// create a temp table prevented stores for the User and Country
VAR prevent = 
   CALCULATETABLE(
    VALUES(Security[Store]),
    Security[User] = USERNAME(),
    Security[Block] = "X"
    )

RETURN
// Allow the user access if the country store or * is in the allow temp table.
// But prevent acceess if that user country store is blocked.

(
    [Store] IN allow
    ||
    "*" IN allow
)

&amp;amp;&amp;amp; NOT [Store] IN prevent&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test by using View as Jane who has access to&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;All store in France&lt;/LI&gt;
&lt;LI&gt;Just stores 1 and 4 in the UK&lt;/LI&gt;
&lt;LI&gt;And all stores in USA except 1 and 3&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Works perfectly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I like how how this solution is easily to understand, develop, test and maintain.&lt;/P&gt;
&lt;P&gt;So you can easily make changes to the security config table as when staff need access adding or removing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 14:36:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768670#M182634</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2025-07-18T14:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768689#M182635</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628600" data-lia-user-login="NielsBakker" class="lia-mention lia-mention-user"&gt;NielsBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you MUST use direct query then consider implementing the row level security inside the source system rather than Power BI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example if the source is SQL Server, MY SQL or Oracle then implement the security in there rather than Power BI.&lt;/P&gt;
&lt;P&gt;The data base administator will help you to that, or you can learn how via the&amp;nbsp;SQL Server, MY SQL or Oracle comuinity forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively consider Power BI&amp;nbsp; Import Mode, a composite model or Fabric Direct Lake so that you can leverage all DAX comands inside Power BI RLS (Row Level Security).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, this is not the answer you want, but one of the reasons that&amp;nbsp;Fabric Direct Lake is becoming so populare is that it is&amp;nbsp;&lt;SPAN&gt;ideal for semantic models with RLS regardless of the data source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Learn about&amp;nbsp;Fabric Direct Lake here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/fundamentals/direct-lake-overview" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/fundamentals/direct-lake-overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 14:51:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768689#M182635</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2025-07-18T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768721#M182636</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628600" data-lia-user-login="NielsBakker" class="lia-mention lia-mention-user"&gt;NielsBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This users has posted some good videos about RLS with Direct Query that you might find interesting&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.youtube.com/watch?v=WowP5vOgeqI" target="_self"&gt;https://www.youtube.com/watch?v=WowP5vOgeqI&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://radacad.com/directquery-connection-in-power-bi-how-does-it-work-limitations-and-advantages/" target="_blank"&gt;https://radacad.com/directquery-connection-in-power-bi-how-does-it-work-limitations-and-advantages/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 15:13:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4768721#M182636</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2025-07-18T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4770474#M182702</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628600" data-lia-user-login="NielsBakker" class="lia-mention lia-mention-user"&gt;NielsBakker&lt;/a&gt;&amp;nbsp;, hope you are doing great. The answers from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177566" data-lia-user-login="speedramps" class="lia-mention lia-mention-user"&gt;speedramps&lt;/a&gt;&amp;nbsp;seems appropriate. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 10:46:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4770474#M182702</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-07-21T10:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4770888#M182716</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177566" data-lia-user-login="speedramps" class="lia-mention lia-mention-user"&gt;speedramps&lt;/a&gt;&amp;nbsp;thank you very much for your help! Really appreciated it and you were very helpful. In the end to make it work I used the following:&lt;/P&gt;&lt;P&gt;- Imported the user security table with wildcards&lt;/P&gt;&lt;P&gt;- Imported a bridge table with all columns that are in the security table except for userID. All possible combinations are in 1 time and I added a unique column (concatenated all columns). Used many-to-many relationship and used the DAX as you explained.&lt;/P&gt;&lt;P&gt;- FactTable remains DirectQuery, but in here I also added the same concatenated column and connected it with the BridgeTable. Relationship is One-To-Many so that when the Bridge table gets filtered, it automatically filters the factTable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 13:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4770888#M182716</guid>
      <dc:creator>NielsBakker</dc:creator>
      <dc:date>2025-07-21T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic RLS and using DirectQuery</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4771917#M182753</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628600" data-lia-user-login="NielsBakker" class="lia-mention lia-mention-user"&gt;NielsBakker&lt;/a&gt;&amp;nbsp;thank you for letting us know the outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "composite" solution you selected is a common method.&lt;/P&gt;
&lt;P&gt;Security rules rarely change, so the security table can be imported.&lt;/P&gt;
&lt;P&gt;But sometimes direct query is needed for the Fact table if it is being constanly updated and the most recent data is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, Fabric Direct Lake semantic data models now allow near real time replication.&lt;/P&gt;
&lt;P&gt;Allowing both tables to have the most recent data like Direct Query but all the DAX functionality like import model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you scale up your data then Fabric Direct Lake will be worth considering.&lt;/P&gt;
&lt;P&gt;Learn more abour Fabric here&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/fundamentals/direct-lake-overview" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/fundamentals/direct-lake-overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 08:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-RLS-and-using-DirectQuery/m-p/4771917#M182753</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2025-07-22T08:48:13Z</dc:date>
    </item>
  </channel>
</rss>

