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 / Loop through Choices t...
Power Apps
Unanswered

Loop through Choices to build a list for dropdown items

(0) ShareShare
ReportReport
Posted on by 90

Hi, 

This sounds simple, but i can't seems to figure out an efficient way to achieve this. 

The scenario is simple. I have a Department Choice. I want all the choices to be the items of a dropdown control so the page can filter data based on the department dropdown filter. This is easy. But what i want is an extra "Select All" option in this list of items so the page's default choice is "Select All" and no data gets filtered initially. 

chent7_0-1704449842317.png

Here is my attempt to achieve what i descriped above. This code is incorrect, but hope you get my idea. 

 Collect(colDepartmentOptions, { Name: "--All--", Value: 0 });
 ForAll(Filter(Choices(Department), Value >= 5 && Value <=11) As d, 
 Collect(colDepartmentOptions, { Name: d.Label, Value: d.Value })
 );

 

Thanks for your help! 

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard