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 do I add an "ALL" ...
Power Apps
Answered

How do I add an "ALL" option to a dropdown based on a Dataverse choices column?

(0) ShareShare
ReportReport
Posted on by 49
Hi,
I am trying to filter a gallery view based on a Dataverse choices column.
My choices column is based on a status, and I would like to add an option of "ALL CANDIDATES" to the dropdown.
 
Following some Youtube videos I have set a ClearCollect in the OnVisible property as follows:
ClearCollect(collCandidateStatus, {Result: "ALL CANDIDATES"});
Collect(collCandidateStatus, Distinct(Candidates, 'Candidate Status'))
 
I have then set my drop down Items property to
collCandidateStatus
 
and the filter on my gallery to
If(drpCandidateStatus.Selected.Result = "ALL CANDIDATES", Candidates, Filter(Candidates, 'Candidate Status' =drpCandidateStatus.Selected.Value))
 
The issue I am having is that in the dropdown I cannot see all the options. If I set the dropdown value to value I see the choices list, if I set it to result I only the ALL CANDIDATES, the other options are not visible, but I can select them and the filtering works on the Gallery.
 
I am aware that they are different data types but is there a way to be able to see them all together in the dropdown.
 
As a side not, I tried the new dropdown from the modern controls and that shows all options, but they are shown as a set of number and not the text.
 
Any help would be greatly appreciated.
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
     
    can u try this:
    ClearCollect(collCandidateStatus, {Value: "ALL CANDIDATES"});
    Collect(collCandidateStatus, Distinct(Candidates, 'Candidate Status'));
    
    on the gallery:
    If(
        drpCandidateStatus.Selected.Value = "ALL CANDIDATES", 
        Candidates, 
        Filter(Candidates, 'Candidate Status' = drpCandidateStatus.Selected.Value)
    )
    
    if it helped please mark as verified answer,
     
     
    cheers
  • DJPowelly Profile Picture
    49 on at
    Hi MMBR1606,
    Thank you for your reply.
    When I change the ClearCollect to Value from Result I get errors saying there are some invalid arguments.
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    Thanks for trying,
     
    Can u give this a Chance 
     
    ClearCollect(collCandidateStatus, {Result: "ALL CANDIDATES"});
    Collect(collCandidateStatus, ForAll(Distinct(Candidates, 'Candidate Status'), {Result: Result}));
     
    Gallery:
    If(
        drpCandidateStatus.Selected.Result = "ALL CANDIDATES", 
        Candidates, 
        Filter(Candidates, 'Candidate Status' = drpCandidateStatus.Selected.Result)
    )
     
    Cheers
  • DJPowelly Profile Picture
    49 on at
    Hi mmbr1606,
    Thank you for your help with this.
    I have made the changes you suggest and get the following error
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    Lets Wrap a Text around oit and see If IT worked
     
    ClearCollect(collCandidateStatus, {Value: "ALL CANDIDATES"});
    Collect(collCandidateStatus, Distinct(Candidates, Text('Candidate Status')));
     
    Gallery:
    If(
        drpCandidateStatus.Selected.Value = "ALL CANDIDATES", 
        Candidates, 
        Filter(Candidates, Text('Candidate Status') = drpCandidateStatus.Selected.Value)
    )
     
     
    Cheers
  • Verified answer
    DJPowelly Profile Picture
    49 on at
    Hi mmbr1606,
    You are an absolute legend.
    The last one worked a treat.
     
    Thank you so much for taking the time out to help.
    It is much appreciated.
     
    Keith

    Lets Wrap a Text around oit and see If IT worked

    ClearCollect(collCandidateStatus, {Value: "ALL CANDIDATES"});
    Collect(collCandidateStatus, Distinct(Candidates, Text('Candidate Status')));

    Gallery:
    If(
        drpCandidateStatus.Selected.Value = "ALL CANDIDATES", 
        Candidates, 
        Filter(Candidates, Text('Candidate Status') = drpCandidateStatus.Selected.Value)
    )


    Cheers

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard