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 Platform Community / Forums / Power Apps / If Lookup has nothing ...
Power Apps
Unanswered

If Lookup has nothing then return top row value in Data SP List

(0) ShareShare
ReportReport
Posted on by 19

Hello All

The way the below form is setup is a user would select an IP address from the combobox which then does a lookup on a SP List to return the other fields.  The user also has the option to type a manual IP is it does not yet exist.  My idea would be to have a row as ID 1 on the SP Data List with default values to return in this scenario.  How would I modify this formula to return the default "Department" value from the Data List when IP is not found?

Set(DetailsVar,LookUp('Device Data','IP Address' = ddip.Selected.Value))

rso206_1-1676652444789.png

I hope that made sense.  Appreciate any help!

 

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @rso206 

    I would put the combobox (say ComboBox1)  outside the form along with a button for creating a New form NewForm(Form1), if the IP address is not in your combobox. The combobox must have  multiselect false.  The Item property of the form should be Combobox1.Selected.  Use a textbox control in the form for the IP address. It's default should be Parent.Default. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard