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 / Group Column Values fo...
Power Apps
Answered

Group Column Values for Dropdown

(0) ShareShare
ReportReport
Posted on by 1,265

I want to place a Dropdown in my filter pane so users can review a gallery based on a selected 'Job Title'.  I am pulling the values from the SP list column; however, there are duplicate values.  I have previously used the Sort and Filter but in this case I need a Group By and Filter.  I have tried various syntax variations without success.  How is this best achieved?  

 

RJF61_0-1682005605729.png

 

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    if the only issue is that there are multiples on your dropdown, instead of grouping them have you considered using Distinct?

  • TheRobRush Profile Picture
    11,128 Moderator on at

    each of these schools, for example, have 8 entries in my list,

    TheRobRush_0-1682007361792.png

    Distinct(EventMaster,SchoolName)

    gives 1 each

  • RJF61 Profile Picture
    1,265 on at

    @TheRobRush Yes I have Distinct currently.  Is there a method to Sort?

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Sure, just call it before your distinct

    Distinct(Sort(EventMaster,SchoolName,SortOrder.Ascending),SchoolName)

     

    Or if you prefer it outside, reference the new name returned by distinct like so

    Sort(Distinct(EventMaster,SchoolName), Value, SortOrder.Ascending)
  • RJF61 Profile Picture
    1,265 on at

    Ok and now throw a Filter in...???

     

    Sort(Distinct(Filter(EmployeeShort,(CurrentEE.Value = "Yes"),'Job Title'),Value,SortOrder.Ascending))

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at
    Sort(Distinct(Filter(EventMaster, SchoolName="Xavier Institute"),SchoolName), Value, SortOrder.Ascending)

     

    Or

     

    Distinct(Sort(Filter(EventMaster, SchoolName="Xavier Institute"),SchoolName,SortOrder.Ascending),SchoolName)
  • RJF61 Profile Picture
    1,265 on at

    @TheRobRush Perfect...thank you!

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard