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
Anonymous
Not applicable

Re: Power BI Report Builder - Find User Name From Power BI Cloud

You could try what I did... using invoke function column

 

In a blank query:

 

let

Name = (email as any) =>

let

Source = if email = null then

""

else

Text.From(email),

removeDomain = Text.BeforeDelimiter(email,"@"),

replaceDot = Text.Replace(removeDomain,"."," "),

fullName = Text.Proper(replaceDot)

in

fullName

in

Name

 

3 REPLIES 3
Anonymous
Not applicable

Hi Eric65,

 

Thanks for your help but in the specific case am looking at the email logic is not consistent and will not map constantly. 

 

For example for user:

 

User Name -> CORPX\johnsmi

First Name -> John

Last Name -> Smith

 

The email could be john.smith@corpx.com, j.smith@corpx.com, john.smith01@corpx.com other another variations.  

 

 

Hi ,

I got the solution use below expression to get the email alias in power bi service

Note: In local file it will not work

=mid(User!UserID ,1, InStr(User!UserID,"@")-1)

 

I am also same issues, Any one having the idea about this. In my local file user name coming like Domain\NetworkId but in service email id is coming like Email@Domain.com

 

Local Report Builder Example : Reep\Naru

Service Example : Naru@Reepcom

 

 

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
Top Kudoed Authors