<?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: Dax Measure based on if Dynamic RLS is applied in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364856#M126516</link>
    <description>&lt;P&gt;Thanks for your response. So basically I have two DAX measure in my reports and their calculation is different. I want to have a new DAX with condition, let's say if someone from the Dynamic User List accessed the report, they will see the first type of calculation, but other user (or by default) will see the second type of calculation.&lt;/P&gt;&lt;P&gt;Something like: [Condition]=calculate(if(&lt;FONT color="#FF0000"&gt;User is from Dynamic Role&lt;/FONT&gt;), [Measure1], [Measure2])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learnt from another post that looks similar to my question and it looks we cannot make it because "&lt;SPAN&gt;RLS is applied at the dataset level, the measure is created inside the dataset."&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Is-there-a-way-to-tell-if-RLS-is-filtering-a-table-using-dax/m-p/708374/highlight/true#M342031" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Is-there-a-way-to-tell-if-RLS-is-filtering-a-table-using-dax/m-p/708374/highlight/true#M342031&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 06:09:33 GMT</pubDate>
    <dc:creator>Lexi_Liu</dc:creator>
    <dc:date>2023-08-04T06:09:33Z</dc:date>
    <item>
      <title>Dax Measure based on if Dynamic RLS is applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3361680#M126390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have set up several security roles and one of them is a dynamic role by using [user email]= userprincipalname()&lt;/P&gt;&lt;P&gt;Is there a way we can add condition on a dax measure, if that dynamic role is applied (someone from the dynamic role list accessed report), show [measure 1], otherwise show [measure 2] ?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3361680#M126390</guid>
      <dc:creator>Lexi_Liu</dc:creator>
      <dc:date>2023-08-02T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure based on if Dynamic RLS is applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3361754#M126394</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="551102" data-lia-user-login="Lexi_Liu" class="lia-mention lia-mention-user"&gt;Lexi_Liu&lt;/a&gt;&amp;nbsp;its possible based on what i understood from yoir description but i need more information to be able to help you out please&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3361754#M126394</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-02T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure based on if Dynamic RLS is applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364822#M126514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="551102" data-lia-user-login="Lexi_Liu" class="lia-mention lia-mention-user"&gt;Lexi_Liu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, you can configure multiple roles for different conditions. Then add the users into different roles after you publish to Power BI Service.&lt;/P&gt;
&lt;P&gt;For example, in my sample I create two roles for different condtions in Power BI Desktop.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Publish to Power BI Service &amp;gt; Dataset&amp;gt;Security&amp;gt;Add Roles&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 05:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364822#M126514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-04T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure based on if Dynamic RLS is applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364856#M126516</link>
      <description>&lt;P&gt;Thanks for your response. So basically I have two DAX measure in my reports and their calculation is different. I want to have a new DAX with condition, let's say if someone from the Dynamic User List accessed the report, they will see the first type of calculation, but other user (or by default) will see the second type of calculation.&lt;/P&gt;&lt;P&gt;Something like: [Condition]=calculate(if(&lt;FONT color="#FF0000"&gt;User is from Dynamic Role&lt;/FONT&gt;), [Measure1], [Measure2])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learnt from another post that looks similar to my question and it looks we cannot make it because "&lt;SPAN&gt;RLS is applied at the dataset level, the measure is created inside the dataset."&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Is-there-a-way-to-tell-if-RLS-is-filtering-a-table-using-dax/m-p/708374/highlight/true#M342031" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/Is-there-a-way-to-tell-if-RLS-is-filtering-a-table-using-dax/m-p/708374/highlight/true#M342031&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 06:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364856#M126516</guid>
      <dc:creator>Lexi_Liu</dc:creator>
      <dc:date>2023-08-04T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure based on if Dynamic RLS is applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364876#M126519</link>
      <description>&lt;P&gt;Hi Rico, this may not what I'm looking for but thanks a lot for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 06:26:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-based-on-if-Dynamic-RLS-is-applied/m-p/3364876#M126519</guid>
      <dc:creator>Lexi_Liu</dc:creator>
      <dc:date>2023-08-04T06:26:41Z</dc:date>
    </item>
  </channel>
</rss>

