web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
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:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

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

  • AP6 Profile Picture
    67 on at

    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.

  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    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.

     

     

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard