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 function on Edi...
Power Apps
Unanswered

Filter function on Edit Forms

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I am building an app that will serve as a monthly reporting tool. On the home page, staff need to select the country/month/year they are reporting for from dropdown menus. If they enter a country/date where there is already data entered for, I would like the edit forms and the galleries to show this data so staff is able to edit the old data if they need to. 

For the gallery I've used the following formula (which works): 

 

Filter(
'Warehouse table',
Country dropdown. Selected. 'Country name' = Country And Month dropdown. Selected. Month = Month And Year dropdown. Selected. Year=Year
)

 

However, it does not work on edit forms, and I haven't yet figured out any other solution. 

Thanks! 

Gab

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @gab22 

    so the result of the filter is a collection and it can be bound to Gallery or Table, On your edit form for the Item Property you should be using GalleryName.Selected

  • gab22 Profile Picture
    13 on at

    @Mira_Ghaly  thank you for your quick reply. i apologize in advance I'm very new to power apps, and I'm not sure I understand your solution... Are you saying I should create a collection with a filter that then would be bound to my edit form?

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @gab22 

    The filtered collection should be linked to a Gallery Items Property, Example below:

    Mira_Ghaly_0-1620218679419.png

    Then Edit form on another Screen should look like:

    Mira_Ghaly_1-1620218807389.png

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @gab22 

    The output from a filter is always a table even if it consists of a single record. An edit form must have a single record as its item. I prefer Lookup(datasource, ID=Gallery1.Selected.ID).  The datasource must match the one in the form’s datasource property.  This works even if the datasource for the gallery is reshaped or changed to a collection and it defines a single record. The datasource of the form must be the actual connector, not a variable or collection.

  • japiepatat Profile Picture
    2 on at

    Hi Mira,

     

    What does this look like if I don't have a Gallery, but only an edit form? I am using the Power Apps visual in Power BI where the filtering is done. So it should directly show the edit form based on the current selection in Power BI. 

    japiepatat_0-1716824492672.png

     

    I am getting this data from Power BI. 

    Johan

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard