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 in col...
Power Apps
Unanswered

Lookup function in column formula

(0) ShareShare
ReportReport
Posted on by
I intend to create a new column in Dataverse where Resource_Price is fetched from Table1 for the resource and date in the current row in Table2 and use it to calculate the cost for this row in Table2.
 
The unique key in Table1 is a combination of the columns "Resource", "Startdate" and "Enddate", meaning that there will be duplicated records in the column "Resource" for different "Startdate" and "Enddate" (ResourcePrice will be different for different time periods):
 
Resource Startdate Enddate ResourcePrice
Resource1 20240101 20240531 $1 000
Resource1 20240601 20241231 $2 000
Resource2 20240101 20241231 $1 500
 
My thinking is that a formula column using the LOOKUP-function might do the job, maybe something like:
 
LOOKUP(Table1;  Table1[Resource] = Table2[Resource] &&
        [Date] >= Table1 [Startdate] &&
        [Date] <= Table1[Enddate])
 
But I get an error message when I try to use the LOOKUP-function: "Lookup is an unknown or unsupported function".
 
Do you have suggestions on how to lookup as described?
 
I have the same question (0)
  • Shashank Bhide Profile Picture
    946 Moderator on at

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard