<?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: Row level Security on multiple dimension alias table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/3077691#M107069</link>
    <description>&lt;P&gt;Let say we wanted to get the case that is created by B, you will be getting 4 records since it is an or condition ,but it should be 1 right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 12:26:38 GMT</pubDate>
    <dc:creator>maharaj_narayan</dc:creator>
    <dc:date>2023-02-13T12:26:38Z</dc:date>
    <item>
      <title>Row level Security on multiple dimension alias table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2683740#M80463</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a current setup of DW tables one fact&amp;nbsp; which is connected to multiple dimension table, for an example lets take Fact Sales which is connected to multiple Dim Agents tables like Dim-Agent(Who sold the product) , Dim-Agent(who billed the product), Dim-Agent(who serviced the product). which is connected to the fact table different columns like agent_sold, agent_billed, agent_servd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue happens when i try to setup row level security for the Agent table, so i tried putting the below code to all the agent table in the row filter under Roles.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='Dim - Agent_sold'[Agent NT Login]=MID(USERNAME(),FIND("\",USERNAME(),1)+1,LEN(USERNAME())-FIND("\",USERNAME(),1)+1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when it is applied to only one table it works fine, but when i started applying to all the agent table it is doing like a inner join and showing the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know how to handle this situation. Let me know if you need further information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 08:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2683740#M80463</guid>
      <dc:creator>maharaj_narayan</dc:creator>
      <dc:date>2022-08-05T08:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Row level Security on multiple dimension alias table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2686833#M80728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="422211" data-lia-user-login="maharaj_narayan" class="lia-mention lia-mention-user"&gt;maharaj_narayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for that the information you have provided is not making the problem clear to me. Can you please share more details to help us clarify your scenario?&lt;/P&gt;
&lt;P&gt;Please provide me with more details about your table and your problem or share me with your pbix file after &lt;STRONG&gt;removing sensitive data.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Cd07496a2caef4c14ee5d08da6e13a57f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637943327917507206%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=qa2KRhweo4gIMPLhto3MMG3FZFZDgaND7M32AxCMfG4%3D&amp;amp;reserved=0" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Cd07496a2caef4c14ee5d08da6e13a57f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637943327917507206%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=fQIsKU%2Bj99m4YA%2FEKMb0PR%2F89vUPWqb6r5QLdZRFAGU%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 09:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2686833#M80728</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-08-08T09:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Row level Security on multiple dimension alias table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2694449#M81230</link>
      <description>&lt;P&gt;below is a simple diagram representing the fact table connected to different dim tables(all three as same table just aliased into different name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say i wanted to see agent name by number cases on different scenarios like case created, case modified, case completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i implement the Row filter only on case created agent with the above dax, im getting the right value say&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agent name&amp;nbsp; &amp;nbsp;case created&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maharaj&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now if i add the row filter to Case modified agent and see the same agent name and case created the values are getting changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agent name&amp;nbsp; &amp;nbsp;case created&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maharaj&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i add the third table for which "Maharaj" has not completed any cases all together i get 0 records even for the cases created or cases modified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope i explained clear now, sorry i could not attach any pbix file.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 08:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2694449#M81230</guid>
      <dc:creator>maharaj_narayan</dc:creator>
      <dc:date>2022-08-11T08:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Row level Security on multiple dimension alias table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2722489#M83076</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="422211" data-lia-user-login="maharaj_narayan" class="lia-mention lia-mention-user"&gt;maharaj_narayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Row level Security is applied seperatedly , So if you apply the DAX to these three table seperately, it will looks like an inner join.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;='Dim - Agent_sold'[Agent NT Login]=MID(USERNAME(),FIND("\",USERNAME(),1)+1,LEN(USERNAME())-FIND("\",USERNAME(),1)+1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Here is a simple example:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When I apply RLS to one table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&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;When I apply RLS to three tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to apply RLS to Fact-case Table like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Final output;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Case Created by] = MID(USERNAME(),FIND("\",USERNAME(),1)+1,LEN(USERNAME())-FIND("\",USERNAME(),1)+1) || [Case Modified by] = MID(USERNAME(),FIND("\",USERNAME(),1)+1,LEN(USERNAME())-FIND("\",USERNAME(),1)+1) ||[Case Completed by] = MID(USERNAME(),FIND("\",USERNAME(),1)+1,LEN(USERNAME())-FIND("\",USERNAME(),1)+1)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:11:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/2722489#M83076</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-08-24T08:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Row level Security on multiple dimension alias table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/3077691#M107069</link>
      <description>&lt;P&gt;Let say we wanted to get the case that is created by B, you will be getting 4 records since it is an or condition ,but it should be 1 right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 12:26:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-on-multiple-dimension-alias-table/m-p/3077691#M107069</guid>
      <dc:creator>maharaj_narayan</dc:creator>
      <dc:date>2023-02-13T12:26:38Z</dc:date>
    </item>
  </channel>
</rss>

