Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +RFeAmm//Q/7plvXaCsbCl
Power Apps - Building Power Apps
Answered

Select All for a Multi-select combobox field in Power Apps with Filter values

Like (0) ShareShare
ReportReport
Posted on 9 Nov 2022 01:44:41 by 12

I have a combo box that displays a list of values filtered by another combo box.

dalgi24_0-1667957985443.png

 

I want that when the user checks a box all default values are selected but considering the filter.
Currently the Choices statement works in the DefaultSelectedItems property but I need the values to be filtered

dalgi24_1-1667958049022.png

 

 

Can somebody help me please?

 

Thank you!

  • dalgi24 Profile Picture
    12 on 10 Nov 2022 at 19:30:57
    Re: Select All for a Multi-select combobox field in Power Apps with Filter values

    Thank you very much  v-qiaqi-msft!

     

    the formula works for me... Only now when saving the information is not stored, modify the update property with the same instruction

     
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 10 Nov 2022 at 01:43:58
    Re: Select All for a Multi-select combobox field in Power Apps with Filter values

    Hi @dalgi24

    Hope you could try the formula I provided and check if it works on your side.

    Just replace the Option column with the column you want to populate the Combo Box with:

    ForAll(Sort(Filter(Usuarios,'Tipo de Usuario'.Value=Dropdown1.Selected.Value);'Nombre({Name})'),Option)

     

  • dalgi24 Profile Picture
    12 on 09 Nov 2022 at 13:46:13
    Re: Select All for a Multi-select combobox field in Power Apps with Filter values

    Hi v-qiaqi-msft,

     

    What I want is that the same thing that I have in the Item property works for the DefaultSelectedItems property, I need them to appear selected but with the filter applied.

     

    Best Regards

  • v-qiaqi@microsoft.com Profile Picture
    on 09 Nov 2022 at 03:22:57
    Re: Select All for a Multi-select combobox field in Power Apps with Filter values

    Hi @dalgi24,

    Do you want to filter the items from Choices() function based on the Sort() function?

     

    Modify as below:

     

    ForAll(Sort(Filter(Usuarios,'Tipo de Usuario'.Value=Dropdown1.Selected.Value);'Nombre({Name})'),Option)

     

    In addition, I have found that you have different data source to populate the Combo Box in the DefaultSelectedItems property, however the data source should be the same one between the Items property and DefaultSelectedItems property.

     

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 83 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 49

#3
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

Overall leaderboard
Loading started