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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
S-Croes
Helper I
Helper I

Capitalise first letter of every word from mail address

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:

john.doe@company.com

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!

3 REPLIES 3
johnt75
Super User
Super User

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.