web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter a Dropdown Base...
Power Apps
Unanswered

Filter a Dropdown Based on Two Different SharePoint Lists

(0) ShareShare
ReportReport
Posted on by

Hello! 

 

I'm trying to filter a PowerApp dropdown based on two different SharePoint list values,

 

One is a List with whether or not a vehicle is "available" which I currently am using for the default filter for the dropdown:

 

Filter('Vehicle Information', Status.Value="Available")

 

I need to add another filter from another SP list that will track whether or not the vehicle is "checked in" meaning available to be checked out by users. This SP list is essentially a running list of who has checked in/checked out the vehicles and at what time, but I cant seem to figure out how to add both filters to my dropdown to get them to work in combination with each other.

 

End goal is to show which vehicles are "available" from SP list 1 as well as "checked in" from SP list 2.

 

My SP List names are:

SP List 1: Vehicle Information

SP List 2: Vehicle Tracker

 

Important Columns and Names:

SP List 1: "Status"

SP List 2: "Vehicle ID Number" (Field=IdentificationNumber), "Vehicle Status: (Field=EquipmentStatus)

 

Anyone able to assist me? I'm not sure if adding another Filter is correct, or if it needs to be distinct or last - although I'm sure there's multiple ways to do this... I just cant figure it out for some reason 😞

 

Thank you!

 

 

Categories:
I have the same question (0)
  • DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello,

     

    You can try something like this :

    Filter('Vehicle Information', Status.Value="Available", CountRows(Filter('Vehicule Tracker',IdentificationNumber=[your Vehicule ID Number in SPList1],EquipmentStatus.Value="Checked in"))>0 )

     

    The idea is to add a condition to your main filter, where you count the rows matching your condition on SP List 2 Data.

     

    You just have to get a common ID between 2 lists : [your Vehicule ID Number in SPList1] / "Vehicle ID Number"  in SP list 2

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

  • Applications Profile Picture
    on at

    So I modified it slightly to fit your point you made in your reply to:

     

    Filter('Vehicle Information', Status.Value="Available", CountRows(Filter('Vehicle Tracker', IdentificationNumber=['Vehicle Information'.Identifier], EquipmentStatus.Value="Checked In"))>0 )

     

    But my dropdown is now blank and doesn't show any of the vehicles at all. Also I'm not sure if it matters in this formula or not, but the Identifier column in SP List 1 is a text field (also the field=Title), whereas in the Vehicle Tracker, the Identification Number is a selection. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard