cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Filter on lookup fields

Dear all,

 

I'm struggling with a filtering problem for some time so I hope someone can help me out in the right direction!

 

I have created 3 sharepoint lists:

 

COUNTRY

CountryCode

Name

 

CITY

CityCode

Name

Country (lookup to country)

 

HOUSE

HouseNr

Name

City (lookup to city)

 

PowerApp issue:

In my first screen I have a gallery where I select the COUNTRY and navigate to a 2nd screen.

In the second screen now I want to show a gallery with all houses that belong to that selected country.

 

So this is what I'm trying to do, but it gives me errors. 

Filter(House, City.Value in Filter(City, Country.Value = CountryGallery.Selected.CountryCode).CityCode)

 

CountryGallery is my country selector on the first screen.

 

Any ideas? Really appreciate your help!

 

Kind Regards

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Filter on lookup fields

Dear, thanks for the quick reaction. By describing the error I found the reason for my problem (never use 'Table' as the name of a sharepoint list).

 

Kind Regards

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Filter on lookup fields

@siegfried 

You said that the formula you wrote gives you errors.  What do you mean by errors?  Is there an error message?  Is your formula underlined in red?  Please take a screenshot of any error messages you received and post it here.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Frequent Visitor

Re: Filter on lookup fields

Dear, thanks for the quick reaction. By describing the error I found the reason for my problem (never use 'Table' as the name of a sharepoint list).

 

Kind Regards

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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