<?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 in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3632771#M48672</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;1. Create a fuzy match table&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS (
    'user_access',
    "job_no2",
        CALCULATE (
            MAX ( 'main_fact_table'[job_no] ),
            FILTER (
                'main_fact_table',
                IFERROR ( SEARCH ( 'user_access'[job_no], 'main_fact_table'[job_no], 1, 0 ), 0 ) &amp;gt; 0
                    &amp;amp;&amp;amp; 'main_fact_table'[year] = 'user_access'[year]
            )
        )
)&lt;/LI-CODE&gt;
&lt;P&gt;2. Create a role and add a filter with the formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[job_no] IN CALCULATETABLE(VALUES('Table'[job_no2]),FILTER('Table','Table'[year]=[year]&amp;amp;&amp;amp;'Table'[user name]=USERNAME())) &lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1704961185167.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1023816i97006CBEA83A0A54/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1704961185167.png" alt="vyiruanmsft_0-1704961185167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 08:20:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-11T08:20:54Z</dc:date>
    <item>
      <title>RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3630260#M48562</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I&amp;nbsp; am facing some issue while implementing the RLS for below fact table.&lt;/P&gt;&lt;P&gt;main_fact_table&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;job_no&lt;/TD&gt;&lt;TD&gt;year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT123&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT123467&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT235&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT2345&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT345&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT334&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT3647&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT3654&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT6584&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT6574&lt;/TD&gt;&lt;TD&gt;2024&lt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is two table.&lt;BR /&gt;&lt;BR /&gt;1)main_fact_table&amp;nbsp; (this is the main facr table)&lt;BR /&gt;2)user_access&amp;nbsp; (this is the details of user who has access to the perticuler data)&lt;BR /&gt;&lt;BR /&gt;these two table are disconnected table hence they have no relation between them, and we are using the coloumn "job_no" (user_access) to decide the access for a perticuler user but in the "user_access" table column "job_no" dose not contain the full value we need to implement wildcard here for example in user_access&amp;nbsp; one user named "sourav" has access to the row&amp;nbsp; job_no in fact table&amp;nbsp; whose value starts with&amp;nbsp; "IT12" AND "IT3" so sourav should she all the rows in "main_fact_table" whose "job_no" starts with "IT12" AND "IT3" and corrosponding year also should take in considaration&lt;BR /&gt;&lt;BR /&gt;in this case sourav should see in "main_fact_table" as below shown&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;job_no&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT123&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT334&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;IT3654&lt;/TD&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:23:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3630260#M48562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3630346#M48581</link>
      <description>&lt;P&gt;need help kindly find the solution&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 12:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3630346#M48581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-10T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3632771#M48672</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;1. Create a fuzy match table&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS (
    'user_access',
    "job_no2",
        CALCULATE (
            MAX ( 'main_fact_table'[job_no] ),
            FILTER (
                'main_fact_table',
                IFERROR ( SEARCH ( 'user_access'[job_no], 'main_fact_table'[job_no], 1, 0 ), 0 ) &amp;gt; 0
                    &amp;amp;&amp;amp; 'main_fact_table'[year] = 'user_access'[year]
            )
        )
)&lt;/LI-CODE&gt;
&lt;P&gt;2. Create a role and add a filter with the formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[job_no] IN CALCULATETABLE(VALUES('Table'[job_no2]),FILTER('Table','Table'[year]=[year]&amp;amp;&amp;amp;'Table'[user name]=USERNAME())) &lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1704961185167.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1023816i97006CBEA83A0A54/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1704961185167.png" alt="vyiruanmsft_0-1704961185167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 08:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3632771#M48672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T08:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3633567#M48708</link>
      <description>&lt;P&gt;Thanks, for the effort but there is a small changes in the requirement&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rls.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1024013iA699FBDCA62F9C86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rls.PNG" alt="rls.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;i want the third row as well for user named "sourav" to have access in the&amp;nbsp;'main_fact_table' cause in the 'user_access' table "sourav" has access to the "job_no" in 'main_fact_table' whose value starts with IT3 for the 'year'= 2024 as well&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Final access for sourav i have attached in the screenshot.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:33:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS/m-p/3633567#M48708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T14:33:46Z</dc:date>
    </item>
  </channel>
</rss>

