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.
Hi all,
I was wondering, does someone know how to do the following:
I have a message on my landing page, welcoming the user by name.
Now, because of certain limitations, the user principal name in our org is the full mail address of a person. Two examples:
frits.von.zarovich@company.com
I got as far as to have these names be seperated from their domains, and have the "." removed. This results in:
john doe
frits von zarovich
Now I am wondering, is there a way to capitalise the first letters of every surname? I think I could be able to do it for the first letter of the first name, but I would like to be do this for all surnames as well.
This is the measure created to get so far:
User Principal Name =
Var User =
SUBSTITUTE(
LEFT ( USERPRINCIPALNAME (), FIND ( "@", USERPRINCIPALNAME () ) - 1 ), ".", " ")
Return
"Hello, " & User
Thanks for all the possible help!
If you can do it in Power Query then there is a transform option under Format to Capitalise each word.
Do you know how to get that userprincipalname into PQ?
I think you'd need to get a table of all users imported, perhaps from AD, and then do a lookup of the translated name based on USERPRINCIPALNAME
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
38 | |
25 | |
20 | |
15 | |
8 |
User | Count |
---|---|
69 | |
47 | |
46 | |
20 | |
16 |