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
sp1
Frequent Visitor

How to get login user name/user principal name in Power Query

Hello,

 

I want to retrive the login username/userprincipalname in Power BI desktop using power query. I am unable to use system's username/userprincipalname function because they are not work on calculated Tables/Columns so I am trying to get the username/userprincipalname from power query.

Can you please help me for that?

 

Thank you 

1 ACCEPTED SOLUTION
3 REPLIES 3
Ehren
Employee
Employee

Hi sp1. Are you wanting the current Windows user, the user signed into PBIDesktop, or something else?

sp1
Frequent Visitor

Hi @Ehren ,

 

thank you for your response.

 

I am trying to embed the Power BI report on Portal. So when the user login on portal then I want  that user's userprincipal name to filter out the data.

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