<?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 HELP Please: Show the Data But Not All the Details (Data Filtering Based on USERPRINCIPALNAME?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3569576#M137623</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a table that shows production and I would like all employees to see everyone's production but only see their own name (the rest of the names should be blank). This I have achieved using this DAX below. &lt;SPAN&gt;However, if the user logged in is a supervisor (the Employees table has a Supervisor column with a Yes or No value), there should be no filters and he/she should see all data. In the screenshot below, if Princess Leia is a supervisor, she should see all the Employee Names. Also, the supervisor may or may not have production numbers in the table. Any suggestions for how to do this? I would appreciate any help please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EmployeeName =&lt;/SPAN&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;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production'&lt;/SPAN&gt;&lt;SPAN&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Employees'&lt;/SPAN&gt;&lt;SPAN&gt;[LogInEmail]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;USERPRINCIPALNAME&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;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Employees'&lt;/SPAN&gt;&lt;SPAN&gt;[Name]&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;Here's how it looks - Darth Vader is the user currently logged in. After I took this screenshot, I made Darth Vader a Supervisor and I want all the Employee Names to display instead of just his own name.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Data tables:&lt;/DIV&gt;&lt;DIV&gt;Employees:&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;Production:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought about maybe having a separate Supervisor table that contains a list of supervisors?&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 06 Dec 2023 17:27:19 GMT</pubDate>
    <dc:creator>AnnaWho</dc:creator>
    <dc:date>2023-12-06T17:27:19Z</dc:date>
    <item>
      <title>HELP Please: Show the Data But Not All the Details (Data Filtering Based on USERPRINCIPALNAME?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3569576#M137623</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a table that shows production and I would like all employees to see everyone's production but only see their own name (the rest of the names should be blank). This I have achieved using this DAX below. &lt;SPAN&gt;However, if the user logged in is a supervisor (the Employees table has a Supervisor column with a Yes or No value), there should be no filters and he/she should see all data. In the screenshot below, if Princess Leia is a supervisor, she should see all the Employee Names. Also, the supervisor may or may not have production numbers in the table. Any suggestions for how to do this? I would appreciate any help please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EmployeeName =&lt;/SPAN&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;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Production'&lt;/SPAN&gt;&lt;SPAN&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Employees'&lt;/SPAN&gt;&lt;SPAN&gt;[LogInEmail]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;USERPRINCIPALNAME&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;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Employees'&lt;/SPAN&gt;&lt;SPAN&gt;[Name]&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;Here's how it looks - Darth Vader is the user currently logged in. After I took this screenshot, I made Darth Vader a Supervisor and I want all the Employee Names to display instead of just his own name.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Data tables:&lt;/DIV&gt;&lt;DIV&gt;Employees:&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;Production:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought about maybe having a separate Supervisor table that contains a list of supervisors?&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Dec 2023 17:27:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3569576#M137623</guid>
      <dc:creator>AnnaWho</dc:creator>
      <dc:date>2023-12-06T17:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: HELP Please: Show the Data But Not All the Details (Data Filtering Based on USERPRINCIPALNAME?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3576377#M137890</link>
      <description>&lt;P&gt;You need two copies of your fact table. One table is visible without names.&amp;nbsp; You create measures for "Mine"&amp;nbsp; and "Others".&amp;nbsp; The other table is hidden and has the names. Use RLS to control access to the hidden table.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 21:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3576377#M137890</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-10T21:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: HELP Please: Show the Data But Not All the Details (Data Filtering Based on USERPRINCIPALNAME?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3577873#M137972</link>
      <description>&lt;P&gt;Thanks! Do you know how I would go about using RLS to access to access the hidden table? When I tried this, it still filtered the hidden the table and only showed me my data. I think it's because under Manage Roles, my table filter is [LogInEmail] = USERPRINCIPALNAME()? Do you know what I should use? I'm fairly new at Power BI &amp;amp; DAX... appreciate any help.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 15:33:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3577873#M137972</guid>
      <dc:creator>AnnaWho</dc:creator>
      <dc:date>2023-12-11T15:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: HELP Please: Show the Data But Not All the Details (Data Filtering Based on USERPRINCIPALNAME?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3578175#M137985</link>
      <description>&lt;P&gt;This article may help you&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/managing-hierarchical-organizations-in-power-bi-security-roles/" target="_blank"&gt;Managing hierarchical organizations in Power BI security roles - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 18:51:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Please-Show-the-Data-But-Not-All-the-Details-Data-Filtering/m-p/3578175#M137985</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-11T18:51:44Z</dc:date>
    </item>
  </channel>
</rss>

