cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

group by name_field

I have a SharePoint list, which includes the list of employees and all the projects that they are in it. It means that there are employees that appear several times because one employee can be assigned to different projects.

 

Now, I want to have one screen in my app that shows the name of the employees, and when I click on the name, I can go to the next screen which shows the name of the projects for that employee. 

 

I created a new Screen > list screen > and add my SharePoint list as the data source. 

Now, in my app screen, some names have appeared more than once. How can I solve this problem?

I tried to use the group by function, but I couldn't manage.

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to display employee names without repetition and then filter  projects. based on the selection of the employee name?

Could you tell me the data type of employees and projects?

 

I assume that they are all text type.

I've made a similar test for your reference:

1)in employee screen, insert a gallery to display employee.

set the gallery's Items:

Distinct(listname,employee)

2) in project screen, insert a gallery to display projects based on the selection of employee

set the gallery's Items:

Filter(listname,employee=gallery1.Selected.Result)

set one label inside the gallery's text:

ThisItem.project

 

 

 Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to display employee names without repetition and then filter  projects. based on the selection of the employee name?

Could you tell me the data type of employees and projects?

 

I assume that they are all text type.

I've made a similar test for your reference:

1)in employee screen, insert a gallery to display employee.

set the gallery's Items:

Distinct(listname,employee)

2) in project screen, insert a gallery to display projects based on the selection of employee

set the gallery's Items:

Filter(listname,employee=gallery1.Selected.Result)

set one label inside the gallery's text:

ThisItem.project

 

 

 Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (81,775)