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 / Adding a "All" option ...
Power Apps
Unanswered

Adding a "All" option to a dropdown with items from a table

(0) ShareShare
ReportReport
Posted on by 50

I want to create a drop down list with the top option being "All Pupils" and then the other items being generated from a table called 'Groups'. I've read different posts saying this is the correct code to use, where you make a temporary table, add the "All" option, then add the other items, then ungroup it.

 

 

Ungroup(
 Table(
 {pupilOptions: ["All Groups"]},
 {pupilOptions: Groups}
 ),
 "pupilOptions"
)

 

 

However, when I run this I do not get the top option:

Groups.png

 

What am I doing wrong?

 

If I add the column name in to make it this:

Ungroup(
 Table(
 {pupilOptions: ["All Groups"]},
 {pupilOptions: Groups.'Group Name'}
 ),
 "pupilOptions"
)

 

I get a drop down, with the top "All groups" option, and three records, but they are all blank:

Groups2.png

 

I must be missing something simple...? But what?

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @mrwilliams ,

     

    Can you use "All Groups" instead of ["All Groups"]. Don't put brackets

    When you add brackets then that is considered as grouped value

     

    Hope this helps

  • mrwilliams Profile Picture
    50 on at

    Thanks @Ethan_R - I had tried that but it just causes and error in the formula:

    error.png

  • Akser Profile Picture
    1,546 Moderator on at

    Hi @mrwilliams,

     

    Can you provide more information about this 'Groups' table? Is 'Group Name' a single line text or a lookup for example? 

     

    Edit: I think I found it:

    Ungroup(
     Table(
     {pupilOptions: ["All Groups"]},
     {
     pupilOptions: RenameColumns(
     Groups.'Group Name',
     "Group Name",
     "Value"
     )
     }
     ),
     "pupilOptions"
    )
  • mrwilliams Profile Picture
    50 on at

    Hi @Akser  the Group Name field is just a simple text field. I will give your edits a go and see what happens! Thanks. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard