Skip to main content

Notifications

Community site session details

Community site session details

Session Id : vurBZ4OMI7kVCDhyrJzoE+
Power Apps - Building Power Apps
Unanswered

Remove dropdown duplicates on editform

Like (0) ShareShare
ReportReport
Posted on 30 Oct 2019 20:49:35 by 401

Hi,

I'm working on an app to track deliveries to restaurants. One of my columns is the name of the restaurant, which has duplicates, and the others are the items that are needed to be delivered to those restaurants.

My question is how can I remove the duplicates on my dropdown1 inside the editform? my second question is, how can I show specific items depending on the choice in the first column? Example:

If I select restaurant1 from dropdown1, populate specific items needed to be delivered that pertain to only that restaurant.

 

Thanks.

 

Categories:
  • _sourcecod3_ Profile Picture
    401 on 31 Oct 2019 at 17:17:34
    Re: Remove dropdown duplicates on editform

    @v-yutliu-msftThe data type for restaurant and location are just single line of text.

    These items are in an editform when a user is submitting an item. I want to be able to remove the duplicates from dropdown1, when an item is selected in dropdown1, filter items on dropdown2 (both Single Line of Text).

     

  • v-yutliu-msft Profile Picture
    on 31 Oct 2019 at 09:32:39
    Re: Remove dropdown duplicates on editform

    Hi @_sourcecod3_ ,

    1)Could you tell me the data type of restaurant field?

    I suggest you try Distinct function, which is used to display no-duplicate data.

    If it is a text type, try to set the drop down's Items:

    Distinct(tablename,restaurant field)
    //please replace with your tablename, fieldname

     

    2)Do you want to filter items in drop down 3 based on the selection of drop down 1 and drop down 2?

    Could you tell me the data type of restaurant and location field?

    I assume that they both are text type.

    Then please set the drop down 3's Items:

    Filter(tablename,restaurant field=drop down1.Selected.Result,location field=drop down2.Selected.Value)

    Please note that :

    1)the reason why I use drop down1.Seleccted.Result to represent the selection of drop down 1 is that Distinct function will return a column named Result.

    2)if you set drop down2's Items to : tablename.location field name

    I suggest you use drop down2.Selected.Value.

    If you set drop down's Items to tablename, Value to location field name

    I suggest you use down2.Selected.location field name

     

     

    Best regards,

     

     

  • notj Profile Picture
    780 on 30 Oct 2019 at 21:13:33
    Re: Remove dropdown duplicates on editform

    My response was specifically to your second question regarding showing only options based off a selection.

  • _sourcecod3_ Profile Picture
    401 on 30 Oct 2019 at 21:09:36
    Re: Remove dropdown duplicates on editform

    @notjthanks for your response. Maybe I didn't explain my situation correclty. This app would have three dropdowns.

    dropdown1: select a restaurant (I need to be able to remove duplicates).

    dropdown2: display the location of the restaurant

    dropdown3: display the items for the two above selections. 

     

    This data will be displayed in a gallery.

     

    Thanks

     

  • notj Profile Picture
    780 on 30 Oct 2019 at 20:58:42
    Re: Remove dropdown duplicates on editform

    Wherever you're storing that information, I would bring it into a collection and then use a Gallery to display that collection. Use the Search function to display only items where your Restaurant column = dropdown Restaurant. 
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 48 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 36

Overall leaderboard
Loading started