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 / How to eliminate dupli...
Power Apps
Unanswered

How to eliminate duplicates in drop down in Power Apps

(0) ShareShare
ReportReport
Posted on by 6

For my Drop down box, I have the following in the Items formula:

 

"Filter(ShoeInventory,ProductCategory = ddByCtgy.SelectedText.ProductCategory)"
 
I want to be able to just show distinct values in the drop down list.  I have attached a screenshot of  how it currently displays.
I've tried following several videos for DISTINCT but can't get it to work with this drop down.
Thanks for your help!
duplicatesindropdown.png
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @katgifford ,

     

    Could you please try using this formula? If any errors occur, could you kindly provide the error message?

     

    Distinct(Filter(ShoeInventory,ProductCategory = ddByCtgy.SelectedText.ProductCategory),ColumnName)

     

    Best Regards,

    Bof

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @katgifford 

     

    To use the Distinct function, in the Items property of your drop down:

    Distinct(ShoeInventory, ProductCatergory)

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • katgifford Profile Picture
    6 on at

    @v-bofeng-msft Thanks.  Just want to confirm I would update the "ColumnName" value to ProductCategory

  • katgifford Profile Picture
    6 on at

    @AARON_C Thanks for the attempt.  Now my gallery doesn't show the images or price, etc. only the product category but I do only see one of each in the gallery

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @katgifford ,

     

    Please try:

     

    ForAll(
     Distinct(ShoeInventory,ProductCategory),
     LookUp(ShoeInventory,ProductCategory=Value)
    )

     

    Best Regards,

    Bof

  • katgifford Profile Picture
    6 on at

    Hello @v-bofeng-msft ,

    I tried using that update and it still doesn't work.  It doesn't give an error, the drop down still shows duplicates when I play the app.

     

    Thanks.

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @katgifford 

     

    But doesnt your dropdown only need to show the category of the shoe? You should be filtering the gallery based off the drop down.

     

    Did you place the code into the dropdown control.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard