<?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 Using IN operator in DAX for RLS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-IN-operator-in-DAX-for-RLS/m-p/3051885#M105149</link>
    <description>&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;i have a column named Persons that the usernames are inside it like below:&lt;/P&gt;&lt;P&gt;John,Dave,Ava,Chris&lt;/P&gt;&lt;P&gt;i want to use a RLS that get the username of entered user and only show data if the username include in that column.&lt;/P&gt;&lt;P&gt;i know that i can get the entered person username by USERNAME() but i dont know how to write the above expression in dax.&lt;/P&gt;&lt;P&gt;i have tried the below code in RLS but it gave me an error:&lt;/P&gt;&lt;P&gt;USERNAME() IN [Persons]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any comment is appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 07:02:33 GMT</pubDate>
    <dc:creator>alisoroush7</dc:creator>
    <dc:date>2023-01-31T07:02:33Z</dc:date>
    <item>
      <title>Using IN operator in DAX for RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-IN-operator-in-DAX-for-RLS/m-p/3051885#M105149</link>
      <description>&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;i have a column named Persons that the usernames are inside it like below:&lt;/P&gt;&lt;P&gt;John,Dave,Ava,Chris&lt;/P&gt;&lt;P&gt;i want to use a RLS that get the username of entered user and only show data if the username include in that column.&lt;/P&gt;&lt;P&gt;i know that i can get the entered person username by USERNAME() but i dont know how to write the above expression in dax.&lt;/P&gt;&lt;P&gt;i have tried the below code in RLS but it gave me an error:&lt;/P&gt;&lt;P&gt;USERNAME() IN [Persons]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any comment is appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 07:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-IN-operator-in-DAX-for-RLS/m-p/3051885#M105149</guid>
      <dc:creator>alisoroush7</dc:creator>
      <dc:date>2023-01-31T07:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using IN operator in DAX for RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-IN-operator-in-DAX-for-RLS/m-p/3051932#M105156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393264" data-lia-user-login="alisoroush7" class="lia-mention lia-mention-user"&gt;alisoroush7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried below code:-&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Persons] = USERNAME()&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Jan 2023 07:22:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-IN-operator-in-DAX-for-RLS/m-p/3051932#M105156</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2023-01-31T07:22:01Z</dc:date>
    </item>
  </channel>
</rss>

