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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can you set a "default...
Power Apps
Answered

Can you set a "default image" if the selected item doesn't have a photo?

(0) ShareShare
ReportReport
Posted on by 457

I have a dropdown that references an employee list in SharePoint. When the item / person is selected, there's an image element that brings up the image found in the Picture column. Not all employees have photos though.  

 

Is there some way to display a default image, like the one below, if the Picture Column for the selected item in the SharePoint list is empty? 

 

usericon.png

Categories:
I have the same question (0)
  • Verified answer
    Fardy_MADI_2 Profile Picture
    332 Super User 2024 Season 1 on at

    Hi @anthonys123

    Add your default image in your apps. Then try this formula in the default property :

     

    If(IsBlank(YourPictureColonm), YourDefaultImage, YourPictureColonm)

     

  • Verified answer
    anthonys123 Profile Picture
    457 on at

    Got it! Took a little finessing, but this works. Thank you!!

     

    If(IsBlank(PersonPicker.Selected.Picture),(blankuser.image),PersonPicker.Selected.Picture)
  • timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    Hi @anthonys123 

    An alternative/shorter approach is to call the Coalesce function:
    https://learn.microsoft.com/en-gb/power-platform/power-fx/reference/function-isblank-isempty

     

    Coalesce(
     PersonPicker.Selected.Picture,
     blankuser.image
    )
    

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard