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 IN Operator for ...
Power Apps
Unanswered

Using IN Operator for lookup field in Filter

(0) ShareShare
ReportReport
Posted on by 56

Hi All,

 

I get an error message when I try with IN operator with lookup column using Dataverse tables.

 

I have two tables Agreements and WorkOrder .  Agreements table having 1000+ records and agreement column is lookup datatype in workorder table.

 

Created  colWorkOrder collection for WorkOrders and collection having 10 records . I am trying to create another collection for agreement and  filter agreement table data  based on colworkorder and I get below error message.

Even I tried with primary column(Schedule number) of agreements but I get same error message.

 

GReddy_0-1648960413864.png

 

 

 

Collect(leaseList, Filter(Agreements, Agreement in colWorkOrder.Agreement));

// msdyn_agreementid( Agreement -display name) - Unique Identifier in Agreements

 

 

How do I filter Table2 data based on table1 data?

 

Thank you in advance

 

Regards,

GR

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @GReddy 

    Does Collect(leaseList, Filter(Agreements, Agreement = colWorkOrder.Agreement)) work?

     

  • GuravaReddy Profile Picture
    56 on at

    It doesn't work. I get type conversion error message.

     

    GReddy_0-1649299050754.png

     

    Regards,

    GR

  • Jeroen J Profile Picture
    on at

    Did you ever manage to solve this? I'm facing the same challenge currently...

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard