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 / Filter on lookup fields
Power Apps
Answered

Filter on lookup fields

(0) ShareShare
ReportReport
Posted on by 10

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

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @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."

  • Verified answer
    siegfried Profile Picture
    10 on at

    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

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard