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 / Choice with a gallery ...
Power Apps
Answered

Choice with a gallery that is grouped

(0) ShareShare
ReportReport
Posted on by 125

Morning,

 

I hope that someone is able to assist me with this.

I have a sharepoint list, that is effectively a contact list, with Peoples names and their role.

In my App I have a gallery that is grouped on the Role. What I want to be able to do is put a Choice control within the gallery so I can select which person I want to contact that is in that role. 

The items section of my gallery has this formula

 

 

GroupBy(Filter(AddColumns(colApprovers,"ApName",Approver.DisplayName),varStage in'Project Stage'.Value),"ApproverRole","Details")

 

 

I have tried adding this formula to the choices box

 

 

Choices(ThisItem.Details.APName.Value)

 

But that just errors.

 

I'm sure the solution is really simple but I cant for the life of me find it, is anyone able to assist, please? I dont have to do a nested gallery do i?

Categories:
  • Verified answer
    Jezter12 Profile Picture
    125 on at

    I have resolved this.

     

    Rather than use the group by function in the items of the gallery I used Distinct and a filter

     

    Distinct(Filter(colApprovers,varStage in'Project Stage'.Value),'Approver Role')

     

    Then in the combo box i used a similar formula to get the user name to appear.

     

    Distinct(Filter(colApprovers,Title1.Text = 'Approver Role'),Approver.DisplayName)

     

    This then Populates the combobox with the user name filtered to the role.

     

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