cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lars1990
Helper II
Helper II

Filter Combobox items with another table LookUp value

Hi all,

 

I am tryting to filter items in a combobox based on a column in a different table. Where the column in table 2 is a lookup value from table 1. I tried to do it like below but it does not work.

 

Any suggestions?

 

Filter(Table1,Product in Table2.Product)

 

12 REPLIES 12
StalinPonnusamy
Super User
Super User

Hi @Lars1990 

 

Change your app Settings

  1. Go to File Menu
  2. Click Settings
  3. Click General Tab
  4. Increase the limit from 500 to your desired one (Max : 2000)

StalinPonnusamy_0-1634558461252.png

 

Is there a way to avoid this?

If I want to show all products (without a filter) is does show all items.

But when I use the in function it does not show all items.

 

Can I avoid this by creation a collection or something? Or by adding a column to the product table which cointains "yes", "no" when the value is in de delisting table?

@StalinPonnusamy 

Hi @Lars1990 

 

Have a check box on the screen whether to filter or not. If checked means filter otherwise not like below

 

With(
    {
        _Product: Sort(Products,'Product (cr38a_product)'),
        _Delistingproduct:Distinct(Delistings,Product.'Product (cr38a_product)')},
If(!Checkbox1.Value,
_Product,
Filter(_Product,Not('Product (cr38a_product)' in _Delistingproduct))
) //If End
) //With End

 

Note: Rename to your Checkbox

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

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