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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Kcponakala
Frequent Visitor

How to show username of an user in dashboard

Hi, I have tried USERNAME () which is returning domain\userID in Desktop and in web it is returning emailID. I want to see Firstname and Lastname of user as in AD. is there any way that I can show Lastname,Firstname in dashboard.

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Kcponakala ,

 

If you want to import data from AD, you could refer to this blog to load user table into Desktop.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
FrankAT
Community Champion
Community Champion

Hi,
create a disconnected table which holds the Fullname (Firstname & Lastname) and the USERPRICIPALNAME. Use a measure like this:
User = CALCULATE(VALUES(DisconnectedTable[Name]), DisconnectedTable[Userprincipalname] = USERPRINCIPALNAME())
Use this measure in a card visual.

Regards FrankAT

Greg_Deckler
Community Champion
Community Champion

You could use a lookup table in your data model.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Have you tried using USERPRINCIPALNAME() 

https://dax.guide/userprincipalname/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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