Is there a DAX or M function I can use to dynamically display the First and Last Name of the logged in user?
p.s. I can't use username(), nor UserPrincipalName(), as they do not provide this info.
UserID: jd22334 <--- username()
email: firstname.lastname@example.org <---- UserPrincipalName()
First & Last name: John Doe <--- ???
I have 500 users.
I'm looking to see if there is a DAX (or M) function that could capture the First & Last name once ser logged into PowerBI service to view report.
Something similar to existing functions that campture username and email!!!
to turn jd22334 into John Doe, you will need more information that just their login id.
If all you can ever get is jd22334, you can't do it
How many users do you have?
I can't create a table, as I need to capture the name dynamically based on the currently logged in user interacting with the Dashboard.
I think I know what you mean
eg they login as email@example.com
can you have a table of usernames, first names and surnames?
jsmith | John | Smith
and just do a lookup?
Check out the November 2023 Power BI update to learn about new features.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.