web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering Datavers wit...
Power Apps
Unanswered

Filtering Datavers with lookup column

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I'm having trouble filtering a gallery with Dataverse data using a lookup column and thought someone here could help me (or at least tell my it is not working).

 

I have a Dataverse table with "Clients", with a lookup column called "Sales Manager". Sales Manager is optional, so some clients have no value, while others have a Lookup value from the "Employee" table. In my canvas app, I inserted a gallery displaying items from "Client" which I hope could be filtered by "Sales Manager" using a combo box with values from the "Employee" table.

I set the filter on my gallery as follows:

Filter(Client, 'Sales Manager'.'ID' = CB_SalesManager.Selected.'ID')

where CB_SalesManager is my combo box with values from the "Employee" table.

On selection of a value in the Combo box, the filter does nothing, even though if I insert labels pointing at the two values being compared, the values are displayed and match.

If I remove blanks in my formula the filter works:

Filter(Client, 
Not(IsBlank('Sales Manager')) 
&& 'Sales Manager'.ID = CB_SalesManager.Selected.'ID'
)


I seem to hit a delegation barrier with the 'IsBlank' function though, and not all values are returned, but whichever are returned are now correctly filtered.

Do you have any idea where the problem might be here and what could be a solution (if any)?

Thanks for your help!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard