Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Davidu
Frequent Visitor

How to use Userprincipalname() in column?

Hi all,

 

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?

 

I have created one measure like,

UserEmail = IF(Contains(values(user[Email]),[Email], Userprincipalname()),"Yes","No")

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.

 

Can any one help me on this please?

 

Thanks in advance!

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @Davidu ,

This function is not supported in calculated tables/columns. It may be only used in Measures.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors