Forum Discussion
Finding First Name or Last name using DAX like @Username
USERNAME() has the domain as a prefix, do you account for that in your table?
https://docs.microsoft.com/en-us/dax/username-function-dax
you can also try with USERPRINCIPALNAME()
https://dax.guide/userprincipalname/
Proud to be a Datanaut!
- Anonymous7 years agoNot applicable
Both functions that you have mentioned doesn't return me any family name. I am little unsure if it can actually be retrieved?
- Stachu7 years ago
Community Champion
I assumed that you have some dictionary table that allows to find the name based on the USERNAME() or the other function. Is that correct?
Usernames don't have to be based on the names/surnames, so returning the id seems the logical solution here
Did I answer your question? Mark my post as a solution!
Proud to be a Datanaut!
- Anonymous7 years agoNot applicable
Okay this makes sense, so in that case, I have following columns in my dataset.
Name Companyemail John Smith [email protected] Brown Fox Given the above table, can we do that it searches for Username in company email, and if matches, display Name? If yes, what would be the dax?