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 / Using Collections with...
Power Apps
Unanswered

Using Collections with dropdown list - not removing values after selection (it is adding duplicates values)

(0) ShareShare
ReportReport
Posted on by 178

Hi there,
I have a drop-down list that is using collections (The drop-down is used in filtering a Gallery)
Its is working OK the only issue is that when selected it keeps adding a duplicate value to the dropdown  as you can see below

naijacoder_0-1606693336908.png

OnSelect of dropdownlist i have the following
Collect(collectionEventStatus, ddlEventStatus.Selected)

What do i need to remove the values from a collection when dropdown is selected in powerapps.

 

Regards

 

Categories:
  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @naijacoder ,

    The Collect is doing exactly what you have asked and added another item - you have not mentioned the field name in the collection - the syntax you need is

    RemoveIf(
     collectionEventStatus, 
     YourFieldName=ddlEventStatus.Selected.YourFieldName
    )

     

    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.

     

  • naijacoder Profile Picture
    178 on at

    Thanks Warren.
    I tried the below

    Collect(collectionEventStatus, ddlEventStatus.Selected);
    RemoveIf(collectionEventStatus,EvenStatus=ddlEventStatus.Selected.EvenStatus)


    My field name is EvenStatus
    But the code doesn't validate 

    When i try ddlEventStatus.Selected.EvenStatus ....its showing the option Result instead like this 
    ddlEventStatus.Selected.Result

    Any ideas?

  • naijacoder Profile Picture
    178 on at

    I figured it out.
    I tried the below
    RemoveIf(
    collectionStatus,
    'ESC-Request'.'Event Status' = ddlEventStatus.SelectedText.Value
    )
    and it worked but complaning on "Invalid Argument type"

    Any ideas?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard