cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pleibling
Helper I
Helper I

How to filter basend on an other list

Hello,

 

i have a sharepointlist (workers):

 

id=1, title=Peter

id=2, title=manuel

 

And then an other sharepointlist (tickets):

 

id=1, title=case xxx, worker=1

id=2, title=case yyy, worker=2

id=3, title=case zzz, worker=1

 

Booth are connected as Dataconnection.

In my App, i have an dropdownbox mit peter and manuel (worker.title)

Now i want a gallery, based on worker peter (worker.id=1) if i select him in dropdown box

 

What i need to insert in onselected for the gallery?!?

 

Thanks a lot for your help.

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User
Super User

@pleibling 

Assuming your dropdown has an Items property of : workers

Your Gallery Items property should have the following formula:

  Filter(tickets, worker=yourDropdown.Selected.id)

 

This should give you what you are looking for.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Ok, i found the error - i has in the Sharepointlist Tickets only in workers the Title and not the ID, i select the ID - and now it work. Thanks a lot for your help - you made my Day :).

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@pleibling 

Assuming your dropdown has an Items property of : workers

Your Gallery Items property should have the following formula:

  Filter(tickets, worker=yourDropdown.Selected.id)

 

This should give you what you are looking for.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

pleibling
Helper I
Helper I

Hello Randy,

 

thanks for your fast help. But i get no results - i think the error is, that i compare the wrong Fields. I think in the Dropdown is Peter and i compare peter with 1, not with the name - cause autocomplete makes worker to worker.title .

 

Is it possible to see the "raw" data in Sharepointlist (if the field worker has 1 or peter and so on)?

 

Many Thanks. 

Ok, i found the error - i has in the Sharepointlist Tickets only in workers the Title and not the ID, i select the ID - and now it work. Thanks a lot for your help - you made my Day :).

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,600)