cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PabloRoldan
Helper III
Helper III

How Fill Drop down control?

Hi, in a Table1 that table has some columns one of it is called Country. but all countries are repeated, I need to display those countries in a drop down and add a first option that says "All".  

I just place the formula Distict(table1,Country) but I don't know how to add the "All" option at first.

 something like this.

 

PabloRoldan_0-1633620726446.png

(above image has  hardcoded values)

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
lcimon
Resolver I
Resolver I

Hello @PabloRoldan,

 

To add an "All" option, you need to use an extra collection. You can create it as following:

ClearCollect(
    colCountries,
    Distinct(Table1, Country),
    {Result: "All"}
)

 This formula must be in OnSelect or OnVisible property according to your need.

 

Then use the colCountries collection in Items property of your dropdown.

View solution in original post

1 REPLY 1
lcimon
Resolver I
Resolver I

Hello @PabloRoldan,

 

To add an "All" option, you need to use an extra collection. You can create it as following:

ClearCollect(
    colCountries,
    Distinct(Table1, Country),
    {Result: "All"}
)

 This formula must be in OnSelect or OnVisible property according to your need.

 

Then use the colCountries collection in Items property of your dropdown.

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,754)