<?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: RLS with IF condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4877035#M185861</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1402455" target="_blank"&gt;@Aashishjain27&lt;/A&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Nov 2025 05:52:39 GMT</pubDate>
    <dc:creator>v-menakakota</dc:creator>
    <dc:date>2025-11-17T05:52:39Z</dc:date>
    <item>
      <title>RLS with IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871423#M185727</link>
      <description>&lt;P&gt;Requirement is if following condition meets then only RLS should apply else RLS wont apply and user sees entire data.&lt;/P&gt;&lt;P&gt;following code not working id condition is meeting still user seeing entire data and RLS not applying. this all logic from single table which is filtering the data to fact and connected. workaround ? extratable ? Column ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= IF(&lt;BR /&gt;(&lt;BR /&gt;(CONTAINSSTRING([terr_id], "SCC") || CONTAINSSTRING([terr_id], "SNN"))&lt;BR /&gt;&amp;amp;&amp;amp; [terr_type] = "Territory"&lt;BR /&gt;),&lt;BR /&gt;LOWER(TRIM([emp_email])) = LOWER(TRIM(USERPRINCIPALNAME())),&lt;BR /&gt;TRUE()&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 20:50:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871423#M185727</guid>
      <dc:creator>Aashishjain27</dc:creator>
      <dc:date>2025-11-10T20:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: RLS with IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871435#M185729</link>
      <description>&lt;P&gt;Your condition translates into&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=
IF (
    ( CONTAINSSTRING ( [terr_id], "SCC" ) || CONTAINSSTRING ( [terr_id], "SNN" ) )
        &amp;amp;&amp;amp; [terr_type] = "Territory"
        &amp;amp;&amp;amp; LOWER ( TRIM ( [emp_email] ) ) &amp;lt;&amp;gt; LOWER ( TRIM ( USERPRINCIPALNAME () ) ),
    FALSE (),
    TRUE ()
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may not be what you intended.&amp;nbsp; You are also mixing static and dynamic RLS, which makes it even more complex.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 21:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871435#M185729</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-11-10T21:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: RLS with IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871446#M185731</link>
      <description>&lt;P&gt;Its dynamic only. following logic is working but the issue issue when the condition doesnt meet like&amp;nbsp;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;terr_id] &amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;SCC", I want user to see entire data but with this logic user not seeing any data&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ( &lt;/SPAN&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;SPAN&gt;ONTAINSSTRING&lt;/SPAN&gt; &lt;SPAN&gt;( [&lt;/SPAN&gt;&lt;SPAN&gt;terr_id],&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;SCC"&lt;/SPAN&gt; &lt;SPAN&gt;) || &lt;/SPAN&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;SPAN&gt;ONTAINSSTRING&lt;/SPAN&gt; &lt;SPAN&gt;( [&lt;/SPAN&gt;&lt;SPAN&gt;terr_id],&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;SNN"&lt;/SPAN&gt; &lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; [t&lt;/SPAN&gt;&lt;SPAN&gt;err_type] =&lt;/SPAN&gt; &lt;SPAN&gt;"T&lt;/SPAN&gt;&lt;SPAN&gt;erritory"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;LOW&lt;/SPAN&gt;&lt;SPAN&gt;ER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TRI&lt;/SPAN&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;[em&lt;/SPAN&gt;&lt;SPAN&gt;p_email] ) &lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;LOW&lt;/SPAN&gt;&lt;SPAN&gt;ER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TRI&lt;/SPAN&gt;&lt;SPAN&gt;M&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;USE&lt;/SPAN&gt;&lt;SPAN&gt;RPRINCIPALNAME&lt;/SPAN&gt;&lt;SPAN&gt; ()&lt;/SPAN&gt;&lt;SPAN&gt; ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt; (),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FALSE&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Nov 2025 21:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871446#M185731</guid>
      <dc:creator>Aashishjain27</dc:creator>
      <dc:date>2025-11-10T21:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: RLS with IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871457#M185732</link>
      <description>&lt;P&gt;That's not how dynamic RLS works. You are supposed to hold a permission mapping table that is keyed off the USERPRINCIPALNAME and then controls the rest of the data model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't seem to have the required dimension tables for this?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 21:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4871457#M185732</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-11-10T21:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: RLS with IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4875385#M185816</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1402455" data-lia-user-login="Aashishjain27" class="lia-mention lia-mention-user"&gt;Aashishjain27&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for reaching out to the Microsoft fabric community forum.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 08:45:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4875385#M185816</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-11-14T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: RLS with IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4877035#M185861</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1402455" target="_blank"&gt;@Aashishjain27&lt;/A&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 05:52:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RLS-with-IF-condition/m-p/4877035#M185861</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-11-17T05:52:39Z</dc:date>
    </item>
  </channel>
</rss>

