<?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 How to use Userprincipalname() in column? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-Userprincipalname-in-column/m-p/3088401#M108246</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to compare USERPRINCIPALNAME () dax function with other column (Email column) and get the result as Name of that user. Is it possible in power bi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created one measure like,&lt;/P&gt;&lt;P&gt;UserEmail = IF(Contains(values(user[Email]),[Email], Userprincipalname()),"Yes","No")&lt;/P&gt;&lt;P&gt;From above measure, Iam getting YES, if user exist. Then I need Name(value is from other column) of the user in column/measure. Again I need to compare that user name with another table column for getting efforts of the user based on criteria.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me on this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 16:11:34 GMT</pubDate>
    <dc:creator>Davidu</dc:creator>
    <dc:date>2023-02-20T16:11:34Z</dc:date>
    <item>
      <title>How to use Userprincipalname() in column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-Userprincipalname-in-column/m-p/3088401#M108246</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to compare USERPRINCIPALNAME () dax function with other column (Email column) and get the result as Name of that user. Is it possible in power bi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created one measure like,&lt;/P&gt;&lt;P&gt;UserEmail = IF(Contains(values(user[Email]),[Email], Userprincipalname()),"Yes","No")&lt;/P&gt;&lt;P&gt;From above measure, Iam getting YES, if user exist. Then I need Name(value is from other column) of the user in column/measure. Again I need to compare that user name with another table column for getting efforts of the user based on criteria.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me on this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 16:11:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-Userprincipalname-in-column/m-p/3088401#M108246</guid>
      <dc:creator>Davidu</dc:creator>
      <dc:date>2023-02-20T16:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Userprincipalname() in column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-Userprincipalname-in-column/m-p/3094314#M108499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477053" data-lia-user-login="Davidu" class="lia-mention lia-mention-user"&gt;Davidu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This function is not supported in calculated tables/columns. It may be only used in Measures.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Community Support Team_Binbin Yu&lt;BR /&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;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 01:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-Userprincipalname-in-column/m-p/3094314#M108499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-23T01:44:23Z</dc:date>
    </item>
  </channel>
</rss>

