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 Platform Community / Forums / Power Apps / Choice with a gallery ...
Power Apps
Unanswered

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:
I have the same question (0)
  • 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard