<?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: Toggle Row Level Securiy in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633766#M60144</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;VAR _Selected_Role = VALUES(Param_Security_Role[Role]) -- User role selection&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;_Selected_Role = "Hierarchy" &amp;amp;&amp;amp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="2"&gt;'DIM_USER_RLS_HIERARCHY'[USER_EMAIL] = USERPRINCIPALNAME()&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 18:00:54 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-04-01T18:00:54Z</dc:date>
    <item>
      <title>Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633731#M60143</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have an application with the following data model :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="freddoune_0-1743525921449.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1256193i5B5542C7C6D8C411/image-size/medium?v=v2&amp;amp;px=400" role="button" title="freddoune_0-1743525921449.png" alt="freddoune_0-1743525921449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 RLS Tables : one for the hierarchy, one for the location, one for the country and one for the headcount.&lt;/P&gt;&lt;P&gt;Basically the RLS tables filter the Dim Users which filter the Fact table.&lt;/P&gt;&lt;P&gt;What i would like to achieve is to have a slicer with&amp;nbsp;the possible values {"Hierarchy", "Location", "Country", "Headcount"}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="freddoune_2-1743526227078.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1256196i9F53351A98F8DE2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="freddoune_2-1743526227078.png" alt="freddoune_2-1743526227078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the user selects "Hierarchy" then the RLS will only be applied on the RLS Hierarchy table (point 1/ of the snapshot of the data model) and not on the others RLS tables. So the with this selection the Fact table will be filtered only with user from the RLS Hierarchy table.&lt;/P&gt;&lt;P&gt;To manage this I have created my four RLS Role with specific DAX condition. I.e, for the Hierarchy role i applied the following statment :&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;VAR _Selected_Role = VALUES(Param_Security_Role[Role]) -- User role selection&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SWITCH(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;TRUE(),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;_Selected_Role = "Hierarchy",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;'DIM_USER_RLS_HIERARCHY'[USER_EMAIL] = USERPRINCIPALNAME(),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;'DIM_USER_RLS_HIERARCHY'[USER_EMAIL] = "N/A"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When i test my development with the view as i have the following error :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;An error occurred while evaluating the row-level security expression defined on the table. A table of multiple values ​​was provided when a single value was expected.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I do not understand this error : why a table with multiple values is provided ? Which table is it ?&lt;/P&gt;&lt;P&gt;If someone can help me i'll appreciate.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 17:16:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633731#M60143</guid>
      <dc:creator>freddoune</dc:creator>
      <dc:date>2025-04-01T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633766#M60144</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;VAR _Selected_Role = VALUES(Param_Security_Role[Role]) -- User role selection&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;_Selected_Role = "Hierarchy" &amp;amp;&amp;amp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="2"&gt;'DIM_USER_RLS_HIERARCHY'[USER_EMAIL] = USERPRINCIPALNAME()&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 18:00:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633766#M60144</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-01T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633777#M60145</link>
      <description>&lt;P&gt;VAR _Selected_Role = VALUES(Param_Security_Role[Role])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a table, to return a single value use SELECTEDVALUE() or a aggregation like MAX()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR _Selected_Role = selectedvalue (Param_Security_Role[Role], "location")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 18:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4633777#M60145</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-04-01T18:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4636245#M60187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;For my test i tested with 2 roles with the "View as" (Role Hierarchy and Role Location)&lt;/P&gt;&lt;P&gt;When i select Role = Location OR Role = Hierarchy in my slicer, the Dim_Users is not filtered and then i see all the users. I need to force one specifc RLS Pattern with the Slicer Role. How can i achieve this ?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 08:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4636245#M60187</guid>
      <dc:creator>freddoune</dc:creator>
      <dc:date>2025-04-03T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4646765#M60322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/659023"&gt;@freddoune&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if your issue got resolved? or do you need any additional help?&lt;/SPAN&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;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly and give&amp;nbsp;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&amp;nbsp;if helped you resolve your query&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 11:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4646765#M60322</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-04-10T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4653458#M60449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/659023"&gt;@freddoune&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if your issue got resolved? or do you need any additional help?&lt;/SPAN&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;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly and give&amp;nbsp;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&amp;nbsp;if helped you resolve your query&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 09:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4653458#M60449</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-04-15T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Row Level Securiy</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4660852#M60598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/659023"&gt;@freddoune&lt;/a&gt;,&amp;nbsp;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if your issue got resolved? or do you need any additional help?&lt;/SPAN&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;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly and give&amp;nbsp;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&amp;nbsp;if helped you resolve your query&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 10:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Toggle-Row-Level-Securiy/m-p/4660852#M60598</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-04-21T10:41:32Z</dc:date>
    </item>
  </channel>
</rss>

