cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sdedic
Advocate II
Advocate II

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
Advocate II
Advocate II

Thank you @MM_Factor !

Great idea. Working like a charm!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,867)