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 III
Super User III

@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 III
Super User III

@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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,452)