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

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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard