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 / 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:
  • 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

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 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard