cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
luisabsg
Helper V
Helper V

Filter gallery

Im trying to filter my gallery basead on ID another SP LIST. But, if my ID is "3", my gallery filter all items with contains "3", like a "31" "13" ...

 

can someone help me pls?

My first gallery. When I click in "Solicitar Recurso", 

luisabsg_0-1656524906426.png

Open this page. Note that ID is the same but, only existe 3 items with ID number 1 but 

luisabsg_1-1656524976621.png

Appears all items with 1 

luisabsg_2-1656525051640.png

 

My function is: 

luisabsg_3-1656525101122.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
TheRobRush
Super User
Super User

If projetos_ID is a column in your Recurso source it would be like so

Filter(Recurso; projetos_ID = Label7.Text)

 

If that's not it, it will be because I am not quite 100% sure I understand how your sources are laid out for everything

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

View solution in original post

6 REPLIES 6
TheRobRush
Super User
Super User

change exactin to like a countrows on a filter where id+ the value you are looking for), and if coutnrows returns 0 its not there, anything else it is there.

 

exactin is just going to see if the variable (ie 3) is in the record, which 3 is present in 1 13 23 33 43 etc

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

how would the filter with countrows look like?

TheRobRush
Super User
Super User

What does items of original gallery code (and is this the same source gallery we will be referencing in 2nd gallery only filtered?)

What is OnSelect of Solicitar Recurso button in first gallery

 

 

 

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

You can ignore the button hehe.

So, my Original Gallery is the first image. The SP List Name is "scorecard 2.0". 

I add a textinput to save ID that will be add in second gallery (recursos).

Yellow (scorecard 2.0)

Pink (recursos)

luisabsg_0-1656527460285.png

 

 

TheRobRush
Super User
Super User

If projetos_ID is a column in your Recurso source it would be like so

Filter(Recurso; projetos_ID = Label7.Text)

 

If that's not it, it will be because I am not quite 100% sure I understand how your sources are laid out for everything

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

TY 🙂

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,505)