web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Space

(0) ShareShare
ReportReport
Posted on by 15

Both the below syntax work but I need it as one. The issue comes to the &" "& before Suffix. For names with a suffix i need a space, for names without a suffix no space. I tried a couple routes of If statements and referencing the Text input control txtimpSuffix without success.

 

 

Works for names with a suffix:

Trim(Coalesce(
LookUp(Picturelibrary,Name=ApplicationGallery.Selected.'First Name'&" "& ApplicationGallery.Selected.Title & " " & ApplicationGallery.Selected.Suffix,'Thumbnail ({Thumbnail})'.Small),
Parent.Default
))

 

Works for Names without a suffix:

Trim(Coalesce(
LookUp(Picturelibrary,Name=ApplicationGallery.Selected.'First Name'&" "& ApplicationGallery.Selected.Title & ApplicationGallery.Selected.Suffix,'Thumbnail ({Thumbnail})'.Small),
Parent.Default
))

 

Thanks

Categories:
  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @otrompke 

     

    Try this

     

    Trim(
    Coalesce(
    LookUp(
    Picturelibrary,
    Name =
    Concatenate(
    ApplicationGallery.Selected.'First Name',
    " ",
    ApplicationGallery.Selected.Title,
    If(
    IsBlank(ApplicationGallery.Selected.Suffix),
    "", // No space if suffix is blank
    " " & ApplicationGallery.Selected.Suffix // Space before suffix if it's not blank
    )
    ),
    'Thumbnail ({Thumbnail})'.Small
    ),
    Parent.Default
    )
    )

    (Or)

     

    Trim(
    Coalesce(
    LookUp(
    Picturelibrary,
    Name = ApplicationGallery.Selected.'First Name' & " " & ApplicationGallery.Selected.Title &
    If(IsBlank(ApplicationGallery.Selected.Suffix), "", " " & ApplicationGallery.Selected.Suffix),
    'Thumbnail ({Thumbnail})'.Small
    ),
    Parent.Default
    )
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard