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 Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,370)