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 Apps
Unanswered

Filter function

(0) ShareShare
ReportReport
Posted on by 73

Hi, 

 

I am struggling with a Filter function. I have a Gallery (Gallery4) which stores rows from a table called ARTICULO_OC. I also have a form (ENCABEZADO_1) which stores rows from a table called OC. There is a common column between both tables and I want my gallery to show the items associated to the row selected in the Form. I have placed the function in the gallery but it ends up with the red underlying and without success.   

 

Filter(ARTICULO_OC, SCID = ENCABEZADO_1.Selected.ID)

 

Thank you

 

Categories:
  • eka24 Profile Picture
    20,925 on at

    On the Gallery put the table 

    ARTICULO_OC

     

    Then on the items of the form,

    Filte(OC, SCID = Galler4.Selected.SCID)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • bolandre92 Profile Picture
    73 on at

    @eka24 , thank you very much for your help. 

     

    Could you please take a look at your assessment, I think that what i am doing is the other way around. I want to show items in the Gallery according to the single row showed in the form. I compare your function with mine, considering the opposite and I do not see any error. Could you please advise. 

     

    Thank you.  

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    If the ID field is on the form being display then ENCABEZADO_1.Selected.ID should be replaced with the name of the control that value is being displayed in. For example if the ID value is in the DataCardValue1 control on the form then it would look like this: Filter(ARTICULO_OC, SCID =DataCardValue1.Text )

  • bolandre92 Profile Picture
    73 on at

    @Jeff_Thorpe, Thank you for your help. 

     

    I have updated the function according to your instructions. This is how it looks like: 

     

    Filter(ARTICULO_OC, SCID = ID_Datacard1.Text)

     

    The good news are the I have reduced the errors, however, two errors remain: 

    1. Name is not valid, this identifier is not recognized.

    2. Invalid argument type. 

     

    If this helps, the highlighted sections of the function are the sign = and the word Text.

     

    Thank you.  

     

     

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Is it possible that ID_Datacard1 is the name of the data card and not the name of the control inside the data card that has the field value? For example most system generated forms usually have the values in a control named DatacardValue##

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard