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 / Lookup Function with a...
Power Apps
Answered

Lookup Function with ability to enter value

(0) ShareShare
ReportReport
Posted on by 237

Hi,

 

I have a gallery where there is a value that uses a lookup function. Here it:Lookup function or vlookup? was solved. I just wanted to know how I can adjust the formula for the per diem rate to allow me to manually enter a value if the per diem rate is not available in the excel file. 

 

Condition I want to satisfy:

IF the Location of Event field is not blank, then allow user to manually enter per diem rate, else, look up the per diem rate based on zip code and required meal from the Excel File.

 

Gallery:

NPatel12498_0-1703807185673.png

 

 

Formula for Per Diem rate:

NPatel12498_1-1703807205817.png

 

Categories:
I have the same question (0)
  • Verified answer
    scalca Profile Picture
    on at

    I did not fully understand your issue here

    nevertheless, your per diem field should be a text input control which allows the user to enter something in case needed.

    you can use the If(IsBlank() function in order to check whether the location has a value or not in case it is blank then get the value using the lookup and switch function you've mentioned in the Default property

    I would also change the displaymode of the field in case you get the value dynamically to DisplayMode.View or Disabled

    to prevent unwanted changes by user

    again use the If(IsBlank() function to check which path to follow in order to change displaymode.

  • NP-18101421-0 Profile Picture
    237 on at

    Thank you that worked!

     

    I used the modern control text input - which doesn't have a default property. That is why it wasn't working. Appreciate your help!

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
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard