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 2 tables in ord...
Power Apps
Answered

Filter 2 tables in order to get a result

(0) ShareShare
ReportReport
Posted on by 22

Hi Mates, 

 

I'm creating an app and I have a dropdown that should give me a 'contact person' depending on a "Customer Name" and "Department", let me show you:

PowerBSC_Dev_0-1653471064165.png

So, In my sharepoint Lists, I have 2 Lists: 

PowerBSC_Dev_1-1653471214240.png

The "Contacts and depart" and the "Costumers Contacts".

  1. The DropBox Costumer name is linked to the result of the ComboBox, associated to the list "Costumers Contacts" to the 'Title' Column, that is in the previous screen (it should appear the costumer name).
  2. The department dropbox is linked to the "Contacts and Depart" list

Note: In the "Contacts and depart" list, i have the contact person column too. 

-----

So, in order to get a Contact Person in the dropbox, i made this formula:

  • Distinct('Contacts and depart','Contact Person', Filter(Dropdown11.Selected.Title in Dropdown13.Selected.Result))

However, the formula it doesn't work (probably, it's wrong)

I tried a lot of formulas and i always have an error or otions in blank.

 

Could you help me to discover the correct formula? 

Categories:
I have the same question (0)
  • PowerBSC_Dev Profile Picture
    22 on at

    I made a update in the formula:

    Filter('Contacts and depart', Department = Dropdown13.Selected.Result, Hospital = Dropdown11.Selected.Title)

    PowerBSC_Dev_0-1653491009300.png

     

    The formula don't show me any error but I can't see any contact person yet. 

     

     

  • Verified answer
    PowerBSC_Dev Profile Picture
    22 on at

    Solved!

    I had to change the dropdown11 formula to:

    Filter('Costumers Contacts',Title = ComboBox11.Selected.Title)

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard