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:

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:

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