Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • Community Power Platform Member Profile Picture
    on at
    Re: Nested Filter and Distinct for Dropdown based on criteria

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

  • chongzh86 Profile Picture
    2 on at
    Re: Nested Filter and Distinct for Dropdown based on criteria

    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

     

  • v-yamao-msft Profile Picture
    on at
    Re: Nested Filter and Distinct for Dropdown based on criteria

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1