cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GReddy
Helper I
Helper I

Using IN Operator for lookup field in Filter

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

3 REPLIES 3
Drrickryp
Super User
Super User

@GReddy 

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

 

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

 

GReddy_0-1649299050754.png

 

Regards,

GR

jonckhje
Helper I
Helper I

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,195)