cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Raysie
Level: Powered On

Filter Department and Job Title in Gallery

I feel like this is going to be an easy one, but I'm still learning my way around the PowerApps basics. 

 

I'm working off the Org Browser template. I've been able to add to it by adding a button on the Home Screen which leads to a new screen listing all our Departments. I've successfully set the OnSelect from this new screen to navigate to another screen using Navigate(SearchScreenDepartment, Fade)

 

My issue is with the SearchScreenDepartment screen I've created. The existing Gallery I have on this screen is correctly pulling the list of users I need using Filter(Office365Users.SearchUser({searchTerm:"",top:500}),Department=GallerySearchUser_3.Selected.Value) based on the Department selected. I've duplicated this working gallery and wish to have it only show for example the user with the static Job Title "Solicitor" while still taking into account the selected Department value from the previous screen. This second gallery would then sit at the top of my screen with the original gallary sitting below it so employees see the "Solicitor" first before being able to view the remaining users in the department below it.

 

This is the formula I've tried so far: Filter(Office365Users.SearchUser({searchTerm:"",top:500}),Department=GallerySearchUser_3.Selected.Value),JobTitle="Solicitor")

 

How would I go about altering this formula working off the existing one I have? Hope this all make sense!

 

SOLVED: Silly me! working formula to get what I needed is:

Filter(Office365Users.SearchUser({searchTerm:"",top:500}),Department=GallerySearchUser_3.Selected.Value,JobTitle="Solicitor"
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Filter Department and Job Title in Gallery

Hi @Raysie ,

Have you solved your problem?

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
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
Highlighted
Community Support Team
Community Support Team

Re: Filter Department and Job Title in Gallery

Hi @Raysie ,

Have you solved your problem?

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 353 members 5,636 guests
Please welcome our newest community members: