Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Lookup Function with ability to enter value

(0) ShareShare
ReportReport
Posted on by 227

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

 

  • NP-18101421-0 Profile Picture
    227 on at
    Re: Lookup Function with ability to enter value

    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!

  • Verified answer
    scalca Profile Picture
    on at
    Re: Lookup Function with ability to enter value

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard