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 / Add item to List/Colle...
Power Apps
Answered

Add item to List/Collection?

(0) ShareShare
ReportReport
Posted on by 732

I have one dropdown that I use to filter a list in a second dropdown. This is my code:

Distinct(Filter('[dbo].[StuListSmall]',Grade='Covid Grade Dropdown_1'.SelectedText.Value),Section)

I want to add an option to top of list that is 'All'. I am sure there is some easy way to do this but I can't figure it out. I would prefer not to have to make a collection since with this it is cleaner and more dynamic. Thanks. 

Categories:
  • Verified answer
    BrianHFASPS Profile Picture
    732 on at

    So my fix was in first dropdown in OnChange I put this in:

    ClearCollect(SectionList, {Result:"All"});Collect(SectionList,Distinct(Filter('[dbo].[StuListSmall]',Grade='Covid Grade Dropdown_1'.SelectedText.Value),Section))

    Then my second dropdown just references the SectionList collection.  I guess that is the way to do it?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard