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 / Nested Filter and Dist...
Power Apps
Unanswered

Nested Filter and Distinct for Dropdown based on criteria

(0) ShareShare
ReportReport
Posted on by 2

Capture 1Capture 1
Hi all,

Lets say I have data in excel table as picture "Capture 1" above. I would like to create a dropdown list which:

  • Based on "Equipment" Column where "Status" is "Returned"
  • Filter out repeated "Equipment" name

Which mean for this case the dropdown should show:

  • Notebook2
  • Projector1
  • Projector2
  • Projector3

The way i figured out was to get list of "Loaned out" Equipment, then filter the filtered "Loaned out" list from entire "Equipment"


I've tried this:

Distinct(Filter(Table1,Distinct(Filter(Table1,Status="Loaned out"),Equipment)),Equipment)

which returns error.

 

Is there any other way on getting this done?

 

Thank you in advanced.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi Chongzh86,

     

    I have created a similar Excel table with you. A screenshot looks like below:

    1.png

     

    Then I created an app based on this table. Hope my steps could be a reference for you:
    1. Add a connection from PowerApps to Excel table
    2. Add Drop down control1, set its Items property as: Distinct(Table1,Status)
    3. Add Drop down control2, set its Items property as: Distinct(Filter(Table1,Status=Dropdow1.Selected.Value),Equipment)
    4. Then when I select the status “LoanedOut” on Drop down1, all the relevant equipment will be shown on Drop down2.

     

    Please feel free reply if you need more help.

     

    Best regards,
    Mabel Mao

  • chongzh86 Profile Picture
    2 on at

    Hi Mabel Mao,

     

    First of all, would like to thank you for your reply.

    Please allow me to clarify my situation. The usage of my App is for IT equipment loaning. which user can check which equipment is available, and book it.

    Capture 1Capture 1

    Refering back to my table, I can actually hard code the status. Understand that:

     

    Distinct(Filter(Table1, Status="Loaned out"), Equipment)

    Can return result listing below in red:

     

    • Notebook1
    • Notebook3

    Lets Call the results in red "List A".

     

    Just because they're being "Loaned out", means they are no longer available, so I don't wish them to be listed within the dropdown.

     

    So is there any way to get DropDown to list "Returned" Equipments with result in "List A" excluded?

     

    As:

    Distinct(Filter(Table1, Status="Returned"), Equipment)

    will still showing Notebook1 and Notebook3 within the selection list.

     

    Thank you, and sorry for the trouble

     

  • Community Power Platform Member Profile Picture
    on at

    This worked for me with a similar problem I was having, so thank you!

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard