<?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 Need help setting up Role using USERPRINCIPALNAME() with an extra parameter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3805654#M148802</link>
    <description>&lt;P&gt;Hello everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Role where a Partner could only see their own Engagements by using the USERPRINCIPALNAME() measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is as follows:&lt;/P&gt;&lt;P&gt;If he is a Lead Eng. Partner or and Eng. Partner or and Associate Partner, he should be able to see the Engagement he is a part of.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the following example, Partner B is an Eng Partner for the Engagement &lt;STRONG&gt;3000431234&lt;/STRONG&gt;, so he should see that row. The way I have set up, he can only see the rows his username shows up. However, in this case he would need to be able to see the other Engs. as well because one of the Engagements he is part of is in the Lead Engagement&amp;nbsp;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;.&amp;nbsp; In cases where neither of these two conditions apply, he should not be able to see either the Eng. nor the Lead Eng.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="2" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Lead Engagement&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Engagement&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Lead Eng Partner Email&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Eng Partner Email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Associate Partner Email&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;3000431234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;PartnerB@abcd.com&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;n/a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3000401555&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;n/a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2001401234&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;n/a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that is where I'm having trouble setting up, because in some cases such as this one, the partner isn't in either of those three email fields, but because he is part of the Lead Engagement, he should also be able to see them as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 22:08:12 GMT</pubDate>
    <dc:creator>Pierrev31</dc:creator>
    <dc:date>2024-04-02T22:08:12Z</dc:date>
    <item>
      <title>Need help setting up Role using USERPRINCIPALNAME() with an extra parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3805654#M148802</link>
      <description>&lt;P&gt;Hello everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Role where a Partner could only see their own Engagements by using the USERPRINCIPALNAME() measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is as follows:&lt;/P&gt;&lt;P&gt;If he is a Lead Eng. Partner or and Eng. Partner or and Associate Partner, he should be able to see the Engagement he is a part of.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the following example, Partner B is an Eng Partner for the Engagement &lt;STRONG&gt;3000431234&lt;/STRONG&gt;, so he should see that row. The way I have set up, he can only see the rows his username shows up. However, in this case he would need to be able to see the other Engs. as well because one of the Engagements he is part of is in the Lead Engagement&amp;nbsp;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;.&amp;nbsp; In cases where neither of these two conditions apply, he should not be able to see either the Eng. nor the Lead Eng.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="2" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Lead Engagement&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Engagement&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Lead Eng Partner Email&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Eng Partner Email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Associate Partner Email&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;3000431234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;PartnerB@abcd.com&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;n/a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3000401555&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;n/a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2001401234&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PartnerA@abcd.com&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;n/a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that is where I'm having trouble setting up, because in some cases such as this one, the partner isn't in either of those three email fields, but because he is part of the Lead Engagement, he should also be able to see them as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 22:08:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3805654#M148802</guid>
      <dc:creator>Pierrev31</dc:creator>
      <dc:date>2024-04-02T22:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help setting up Role using USERPRINCIPALNAME() with an extra parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3806251#M148834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405368" data-lia-user-login="Pierrev31" class="lia-mention lia-mention-user"&gt;Pierrev31&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just clarifying the requirement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the 2nd condition, where a Partner can see rows relating to Lead Engagements that he is a part of, does that apply regardless of whether he is Lead Partner, Lead Eng Partner or Associate Partner against the Lead Engagement in question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, is is the rule that if a Partner appears at all in at least one row for a particular Lead Engagement, he should see all rows for that Lead Engagement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 01:42:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3806251#M148834</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-04-03T01:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help setting up Role using USERPRINCIPALNAME() with an extra parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3807905#M148871</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes If he appears at all as a Lead Eng Partner, Eng Partner or Associate Partner for any Engagement, he should be able to see all rows associated with the Lead Engagement of that Engagement. So just to make it clear, I expanded the base to show what I mean:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Lead Engagement&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Engagement&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Lead Eng Partner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Eng Partner Email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Associate Partner Email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Can see?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;3000431234&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;PartnerA@abcd.com&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;PartnerB@abcd.com&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;n/a&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;3000401555&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;PartnerA@abcd.com&lt;/TD&gt;&lt;TD&gt;PartnerA@abcd.com&lt;/TD&gt;&lt;TD&gt;n/a&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;PartnerA@abcd.com&lt;/TD&gt;&lt;TD&gt;PartnerA@abcd.com&lt;/TD&gt;&lt;TD&gt;n/a&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2007543543&lt;/TD&gt;&lt;TD&gt;2007543543&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;PartnerF@abcd.com&lt;/TD&gt;&lt;TD&gt;n/a&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2007543543&lt;/TD&gt;&lt;TD&gt;3001546654&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;n/a&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2005125452&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;2005125452&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;PartnerB@abcd.com&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2005125452&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;3005324565&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;PartnerD@abcd.com&lt;/TD&gt;&lt;TD&gt;n/a&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;He is part of the Engagement&amp;nbsp;&lt;STRONG&gt;3000431234&lt;/STRONG&gt;, part of the larger Lead Engagement&amp;nbsp;&lt;STRONG&gt;2001401234, &lt;/STRONG&gt;so he should also be able to&amp;nbsp;the rows for the Eng. &lt;STRONG&gt;3000401555 &lt;/STRONG&gt;and Eng,&amp;nbsp;&lt;STRONG&gt;2001401234&lt;/STRONG&gt;, even though he doesn't show up in any of those email columns for those two Engagements, as they are part of the larger Lead Engagement&amp;nbsp;&lt;STRONG&gt;2001401234.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Same thing applies to the Lead Eng.&amp;nbsp;&lt;STRONG&gt;2005125452&lt;/STRONG&gt;, as he is an Associate in the Eng. row&amp;nbsp;&lt;STRONG&gt;2005125452&lt;/STRONG&gt;, so he should the entire Lead Eng.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the case of the Lead Eng.&amp;nbsp;2007543543, as he doesn't show up in any rows for the Engs. he shouldn't be able to see it at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much! Hope I was clear!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 12:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3807905#M148871</guid>
      <dc:creator>Pierrev31</dc:creator>
      <dc:date>2024-04-03T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help setting up Role using USERPRINCIPALNAME() with an extra parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3808587#M148907</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405368" data-lia-user-login="Pierrev31" class="lia-mention lia-mention-user"&gt;Pierrev31&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes that clarifies it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is how I would write the RLS filter expression assuming the table is named &lt;STRONG&gt;Engagements&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR UPN =
    USERPRINCIPALNAME ()
RETURN
    CALCULATE (
        NOT ISEMPTY ( Engagements ),
        Engagements[Lead Eng Partner Email] = UPN
            || Engagements[Eng Partner Email]  = UPN
            || Engagements[Associate Partner Email] = UPN,
        ALLEXCEPT ( Engagements, Engagements[Lead Engagement] )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We only need to check the 2nd condition since it dominates the 1st condition. That is, if the current user exists on at least one row with the current row's Lead Engagement, then that user exists on the current row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mock-up PBIX attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3808587#M148907</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-04-03T19:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help setting up Role using USERPRINCIPALNAME() with an extra parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3811234#M149055</link>
      <description>&lt;P&gt;Hello! I think it worked! I'm testing right now, but so far it's perfect! If possible, could you explain how the ALLEXCEPT function worked here to do this? It would be great in case I face a similar problem in the future.&amp;nbsp;Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3811234#M149055</guid>
      <dc:creator>Pierrev31</dc:creator>
      <dc:date>2024-04-04T14:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help setting up Role using USERPRINCIPALNAME() with an extra parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3812010#M149083</link>
      <description>&lt;P&gt;Glad to hear it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the RLS filter expression, &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;CALCULATE&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;adds the values in the current row of Engagements as a filter.&lt;/P&gt;
&lt;P&gt;The modifier&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;ALLEXCEPT ( Engagements, Engagements[Lead Engagement] )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;removes all filters from the Engagements except &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Engagements[Lead Engagement].&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;In other words, it keeps the just Lead Engagement filter from the current row, ignoring all other values on the current row.&lt;/P&gt;
&lt;P&gt;The overall &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;CALCULATE&lt;/STRONG&gt;&lt;/FONT&gt; expression then determines whether any rows exist for that Lead Engagement containing the current user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some discussion of the function in this article:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 21:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-setting-up-Role-using-USERPRINCIPALNAME-with-an-extra/m-p/3812010#M149083</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-04-04T21:30:54Z</dc:date>
    </item>
  </channel>
</rss>

