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 / Trouble with LookUp wi...
Power Apps
Answered

Trouble with LookUp with multiple conditions

(0) ShareShare
ReportReport
Posted on by 216

Hi! I am having trouble getting a LookUp function with two conditions to work. 

 

What I'm trying to do:

 

Return the status (from a SharePoint list called 'Request Suppliers') in a dropdown (DefaultSelectedItems property). The status should be a LookUp of the Supplier's name (from 'Request Suppliers') & the RequestID (from 'Request Suppliers').

 

The RequestID is fixed, the user cannot select it, but the Supplier is a dropdown and can be selected by the user.

 

The problem: 

 

I'm getting an error message saying: "Incompatible types for comparison. These types can't be compared: Table, Table".

 

Can anyone help? Why isn't a table compatible with a table?

 

Thanks!

 

koontz_0-1715351059854.png

 

rk that has 2 conditions. 

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

    I got it to work by using the formula:

     

     

    [LookUp('Request Suppliers', RequestID = editRecord.RequestID && First(Supplier).DisplayName = DataCardValue13.Selected.DisplayName, Status)]​

     

     

    However, while this is working as expected, it is giving me a delegation warning that it may not work on large data sets, so I'm sure this formula can be improved on. Since it works though, I'm marking it as the solution.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard