Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Dropdown Default

(0) ShareShare
ReportReport
Posted on by 67

i have a dropdown which shows all distinct hr names from the list , show i need is when i land this screen  i should see all the hr names with a an extra thing [ALL Hr] , so that if i click on that i should get data in gallery of all hr records together else if i select particular hr name in dropdown then his data should appear in gallery.

 

PFA

Categories:
  • mmbr1606 Profile Picture
    13,085 Super User 2025 Season 1 on at
    Re: Dropdown Default

    do you mean 1 more choice? if yes then simply add it to the options.

  • DBO_DV Profile Picture
    4,663 Super User 2025 Season 1 on at
    Re: Dropdown Default

    Hey could you try this :

     

    in a first step you would need to collect all the HR names in a collection and than add the all value to it :

    ClearCollect(colHRNames,Distinct(Datasource,HRNames));
    Collect(colHRNames,{Value:"HR all"})

    use the colHRNames Collection ad Datasource for your Dropdown

    on your gallery you can now add an If statement:

    If(Dropdown.selectedText.Value="All Hr",Datasource,Filter(Datasource, HRColumn= Dropdown.selectedText.Value))

     

    Let me know if it helped you.

     

     

  • AP6 Profile Picture
    67 on at
    Re: Dropdown Default

    i want one more field in dropdown which is all , so on selecting that i should get all the records , else if i select particular hr name in dropdown then his data should appear in gallery.

  • mmbr1606 Profile Picture
    13,085 Super User 2025 Season 1 on at
    Re: Dropdown Default

    am i right that you ask how u can filter a gallery based on dropdown choice?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1