<?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: How to filter values in a slicer based on role in RLS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3061962#M105840</link>
    <description>&lt;P&gt;If I use RLS on the table in the slicer then my visuals that aggregate the data will only aggregate on the values in the table that the user can see. The issue I have is for example, I want to show the entire company headcount in one visual and then in a second visual the user can select a division and see the headcount of that division. If I user RLS and filter the table the headcount for the entire company will not be accurate. Hence why I was thinking of just hiding values from the slicer as opposed to filtering the table that is used for the slicer.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2023 01:31:10 GMT</pubDate>
    <dc:creator>jf2204</dc:creator>
    <dc:date>2023-02-05T01:31:10Z</dc:date>
    <item>
      <title>How to filter values in a slicer based on role in RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3053681#M105261</link>
      <description>&lt;P&gt;Hi, I have a slicer that lists all the divisions in the company. I need to be able to hide certain divisions based on the role the user is assigned in RLS. Is this possible. E.g. if someone is in a role "Non-HR" then I want the division Human Resources to be hidden from being selected in the slicer. However, the visuals on the page must still use the values from the Human Resources division.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 20:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3053681#M105261</guid>
      <dc:creator>jf2204</dc:creator>
      <dc:date>2023-01-31T20:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter values in a slicer based on role in RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3053697#M105263</link>
      <description>&lt;P&gt;An alternative solution I could consider is to have two different slicers and they are either visible or hidden based on the role. Can we show / hide visuals based on RLS?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 20:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3053697#M105263</guid>
      <dc:creator>jf2204</dc:creator>
      <dc:date>2023-01-31T20:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter values in a slicer based on role in RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3054081#M105293</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507587" data-lia-user-login="jf2204" class="lia-mention lia-mention-user"&gt;jf2204&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand it, you want to display different ranges of values on the slicer depending on the user.&lt;/P&gt;
&lt;P&gt;For your needs, you only need to limit the values of the table of the slicer fields you place through RLS. Because the content in the slicer is also from the original data, as long as the original data is affected by RLS, only the data that the person can see will be displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more information, you can refer to :&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-admin-rls" target="_blank"&gt;Row-level security (RLS) with Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple" target="_blank"&gt;Dynamic Row Level Security with Power BI Made Simple - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 02:09:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3054081#M105293</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-02-01T02:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter values in a slicer based on role in RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3061962#M105840</link>
      <description>&lt;P&gt;If I use RLS on the table in the slicer then my visuals that aggregate the data will only aggregate on the values in the table that the user can see. The issue I have is for example, I want to show the entire company headcount in one visual and then in a second visual the user can select a division and see the headcount of that division. If I user RLS and filter the table the headcount for the entire company will not be accurate. Hence why I was thinking of just hiding values from the slicer as opposed to filtering the table that is used for the slicer.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 01:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3061962#M105840</guid>
      <dc:creator>jf2204</dc:creator>
      <dc:date>2023-02-05T01:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter values in a slicer based on role in RLS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3062856#M105931</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507587" data-lia-user-login="jf2204" class="lia-mention lia-mention-user"&gt;jf2204&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, the end need is "&lt;SPAN&gt;&amp;nbsp;just hiding values from the slicer&lt;/SPAN&gt;".&lt;/P&gt;
&lt;P&gt;If this , Here are the steps you can refer to :&lt;BR /&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)If you do not see the "c and d" in slicer we can use this measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = var _slicer = SELECTEDVALUE('Table'[Column1]) 
return
IF(_slicer in {"c","d"} ,-1 ,1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3)Then we can put the measure on the "Filter on this visual" and we can meet the need.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 03:14:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-values-in-a-slicer-based-on-role-in-RLS/m-p/3062856#M105931</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-02-06T03:14:14Z</dc:date>
    </item>
  </channel>
</rss>

