Forum Discussion
leolapa
4 years agoFrequent Visitor
Extract initials from names column
OK, I have the following text column as part of a 19-column, several-thousand-rows table in PQ: I need to extract the initials of each name from the above column, so this added column would be...
- 4 years ago
Please try this expression in your custom column instead. It will work for any # of names. Replace [Names] with your actual column name.
= Text.Combine(List.Transform(Text.Split([Names], " "), each Text.Start(_,1)), "")
Pat
mahoneypat
4 years agoMicrosoft Employee
Please try this expression in your custom column instead. It will work for any # of names. Replace [Names] with your actual column name.
= Text.Combine(List.Transform(Text.Split([Names], " "), each Text.Start(_,1)), "")
Pat
- leolapa4 years agoFrequent Visitor
It sure did work like a charm...
Thanks a bunch!
- SVEBE2 years agoRegular Visitor
Hi mahoneypat, i just tried this on my own table, but it doesn't work 😞
I wrote:
"
Initials = Text.Combine(List.Transform(Text.Split('Sales Related Documents'[Employee Responsible], " "), each Text.Start(_,1)), "")"