web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter a form based on...
Power Apps
Answered

Filter a form based on Gallery selection

(0) ShareShare
ReportReport
Posted on by

I have an app with 3 screens & 2 data sources ("Properties" & "Spaces")

When I switch to screen 3 by clicking "Space Availability" button, I would like to present data from "Spaces" related to selected record.

 

• 1st screen: gallery(BrowseGallery1) which contains all Properties (data source=Properties)

• 2nd screen: form w/details of the selected property (data source=Properties)

• 3rd screen: form w/details on the spaces available in the selected property (data source=Spaces)

 

I am having trouble with the form on the 3rd screen, it will not display any data. 

This is the formula I have which does not work

Filter(Spaces, spacestoprop = BrowseGallery1.Selected.PrimaryId)

•spacestoprop is the lookup on the Spaces entity

 

New to PowerApps, any help would be greatly appreciated.

 

Categories:
I have the same question (0)
  • BitLord69 Profile Picture
    914 on at

    Is there one and only one record in Spaces for each Property? Is that record created already?

     

    If you have a form you only want to display one record, so the Item property of the form should be a Lookup, not a Filter (Filter gives many records, Lookup only one).

     

    If you want to show all the records, use a gallery instead of a form; then your formula ought to work.

     

    Can you share some screen shots, showing where it goes wrong?

  • Community Power Platform Member Profile Picture
    on at

    Ah I see what you mean. The problem is, there are several Space records for each Property. My mistake, I thought a form would give me a list of all the Spaces available for that specific property. Now I tried creating and filtering the gallery and this is what i get.Capture.PNG Highlighted operation is not supported by column 'spacestoprop'.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    It seems I was missing part of the formula. My new formula looks like this and it's working

    Filter(Spaces, spacestoprop.PrimaryId = BrowseGallery1.Selected.PrimaryId)

     

    Thanks for the info on forms!

  • Community Power Platform Member Profile Picture
    on at

    I'm encountering the same issue but I'm unsure where you defined your spacestoprop lookup. I'm very new to PowerApps but I'd like to accomplish the same thing you described. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard