cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sdedic
Helper I
Helper I

Filter gallery based on lookup field

Hi,

 

I want to filter the gallery to show only those employees that are not billable. I have two dataverse tables that are related: Employee and Resource, where Resource table is looking at the Employee table with the 'Employee' lookup field.

Inside Employee table there is a choice column 'Non-billable' with two choices: billable and non-billable.

 

Datasource of the gallery has to be Resource table.

This is what I have tried so far, but getting no results:

Filter(Resources, Employee.Name = 'Non-billable Choices'.'Non-billable')

 

'Name' in 'Employee.Name' is the primary name column inside Employee table.

Any advice would be appreciated.

Ty.

1 ACCEPTED SOLUTION

Accepted Solutions
MM_Factor
Frequent Visitor

If there is a Dataverse table the easiest idea is to use views on Dataverse table - and filter this non billable employees.

Then in PowerApps you choose only this view in gallery and that's all.

View solution in original post

2 REPLIES 2
MM_Factor
Frequent Visitor

If there is a Dataverse table the easiest idea is to use views on Dataverse table - and filter this non billable employees.

Then in PowerApps you choose only this view in gallery and that's all.

sdedic
Helper I
Helper I

Thank you @MM_Factor !

Great idea. Working like a charm!

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (5,804)