Hi Rob sorry to open this one up again: Solved: Re: Having trouble displaying the correct Office36... - Power Platform Community (microsoft.com) but my datasource has been refreshed and I now have to cater for records like this:
WARREN ANDREWS ; Louis Gettings ; * * ; * * ; * *
the code I have currently caters for a double space or a semi-colon between names - I now need to add the 2 asterisks separated by a space
here's my code:
If(
!IsBlank(ThisItem.Title),
Office365Users.UserPhoto(
LookUp(
MyDetails,
Switch(
CountRows(
Filter(
Split(
Title1.Text,
""
),
Result = ";"
)
),
0,
First(
Split(
Title1.Text,
" "
)
).Result,
First(
Split(
Title1.Text,
" ; "
)
).Result
) in Lower(firstname & " " & surname),
email
)
)
)
I have tried adding another Split but it doesn't like my syntax - any assistance would be greatly appreciated

Report
All responses (
Answers (