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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Ehren
Microsoft Employee
Microsoft Employee
3 REPLIES 3
Ehren
Microsoft Employee
Microsoft 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.

Ehren
Microsoft Employee
Microsoft Employee

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors