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 / Using the Lookup Funct...
Power Apps
Answered

Using the Lookup Function in a Power Fx formula to pull a value from another table

(0) ShareShare
ReportReport
Posted on by 7
Given the following scenario:
 
Table_A includes a 'zipcode' column.

Table_B also includes a 'zipcode' column, as well as a 'city' column and a 'value' column.
 
The relationship between the zipcode in Table_A and the zipcode in Table_B is a many to many relationship.
 
What we want to do is create a Power Fx formula column in Table A that pulls the first found value of 'city' from Table_B into Table A where the zipcodes match AND the value column is equal to or greater than 0.5.
 
Given that we know the syntax for Lookup is: LookUp(Table*, Formula [, *ReductionFormula* ] )
 
Will the following function work when defining the Power Fx formula column in Table A?
 
Lookup (Table_B, zipcode = Table_A.zipcode && value >= 0.5, city)
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at
    It returns the first matching city from Table_B for each record in Table_A, based on the matching zipcode and value >= 0.5.
     
    if you are using in gallery where Table_A is source
    Lookup (Table_B, zipcode = thisitem.zipcode && value >= 0.5, city)
  • Verified answer
    BCBuizer Profile Picture
    22,636 Super User 2026 Season 1 on at
    Dear @TedB,
     
    For formula columns, unfortunately, the LookUp function is not supported. As a general rule of thumb, formula columns only allow you to reference columns within the same table but not in other tables: Formula reference - Dataverse formula columns - Power Platform | Microsoft Learn
     
    What you may consider is to build an automated Power Automate flow that gets triggered by changes in the zipcode column of Table_A. The flow should then list the rows in Table_B that match your criteria, select the value of the City column and use that to update the City (?) column in Table_A.
     
     
    If this reply helped you in any way, please give it a Like 💜 and in case it resolved your issue, please mark it as the Verified Answer ✅.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard