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 / Filtering the dropdown
Power Apps
Answered

Filtering the dropdown

(0) ShareShare
ReportReport
Posted on by 725

Screenshot 2020-02-15 14.46.20.pngScreenshot 2020-02-15 14.47.39.pngHi again

With my purchasing app I have a screen where I can receive my orders as they arrive, but I would like to omit P.O numbers where all the product has arrived. In other words, if the quantities in the QuantityRO column are equal to QuantityO, then I want the corresponding order number to disappear in my dropdown. I can't seem to get my head around filtering dropdowns.

 

Thanks once again

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Corissandageri ,

    I assume QuantityRO and QuantityO are numeric columns from your data source.

    I will call your data source Purchases in this exercise.

    So the Items property of the gallery would be

    Filter(
     Purchases,
     QuantityRO <> QuantityO
    )

    If they are other field types, this may need to be adjusted - please let me know.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Corissandageri ,

    Just noticed it is a drop down - principle is the same.

    Please give me the current Items property if you have not worked it out from the post below.

  • R Bakker Profile Picture
    725 on at

    I tried it, but I get no values showing now.

    Items

    Sort(Distinct(Filter(Table4,OrderNumO),QuantityRO <> QuantityO),Result)

  • Verified answer
    WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Corissandageri ,

    I just did a similar experiment on one of my bigger lists - the issue is the Distinct filter being non-delegable and I received no results.

    I then did a collection on the list (you will need to get something filtered under 2000 items with a delegable filter). I will call the resulting collection Collect4 and the below should work

    Sort(
     Distinct(
     Filter(
     Collect4,
     QuantityRO <> QuantityO
     ),
     OrderNumO
     ),
     Result,
     Ascending
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • R Bakker Profile Picture
    725 on at

    Na sorry that does not work either

  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    @Corissandageri ,

    Thanks for testing, that was definitely on a collection form your data source?

    I re-checked and I have a list using the same structure.

    Do you get an error or simply no result?

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @Corissandageri,

     

    Could you share more error information?

    I also made a test on the following codes, I think it can meet your needs and work well.

     

    Sort(Distinct(Filter(Table4,QuantityO<>QuantityRO),OrderNumO),Result)

     

    Snipaste_2020-02-17_10-46-59.pngSnipaste_2020-02-17_10-46-25.png

    Please ensure the DisplayFields property is ["Result"].

    If this doesn't meet your needs, please share more about your requirements.

    If this doesn't work without any error, please create a new app and try again to check if the issue is fixed.

    If there is any error message, please share it with screenshots.

    Best regards,

    Sik

  • R Bakker Profile Picture
    725 on at

    My Apologies Warren, instead of rewriting your expression, I should of copied and pasted, then swap out the appropriate column names. Yours did work out after all. And thank you by the way.

  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    You can also accept mine if you think that was also the solution.

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