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 on secondary...
Power Apps
Suggested Answer

Filtering on secondary lookup table column in dataverse using <>

(0) ShareShare
ReportReport
Posted on by 576
Hi all,
 
My app is built with Dataverse tables. My 'Job Elements' table has a lookup to the 'Jobs' table, which in turn has a lookup to the 'Customers' table.
 
In this example, I am filtering my 'Job Elements' table on a related value in the 'Customers' table. However, I have found that using the <> operator (also tried Not in), specifically when filtering on a secondary lookup table, is showing me the same results as =.

eg. Here is my gallery correctly showing all rows in 'Job Elements' where the related customer has invoice frequency of "Weekly":


Now, if I change this to <>, I get exactly the same results:




Here it is again for "Daily":




This is especially strange as the URL for the request in the monitor tool does show the 'ne' operator, but the results returned (even in the monitor view for this call) are as if this was 'eq'.

I've also tested with a random string to make sure it wasn't showing me some cached results or something, and the result is the same (this should show ALL results but shows none):


Is this an understood limitation of filtering on lookup columns, or is this perhaps a bug?
Categories:
I have the same question (0)
  • Suggested answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at
    Hi,
     
    Yes, this behavior is a known limitation (or inconsistency) when filtering across multiple lookup levels (i.e., grandchild-to-grandparent) in PowerApps using Dataverse.
     
    ✅ 1. Flatten the Data (Best Approach)
    Add the InvoiceFrequency directly to the Jobs table and replicate it in JobElements using Power Automate or a calculated column. That way, you avoid needing to go through multiple lookups.
     
    ✅ 2. Use a Collection with Full Evaluation (Non-delegable)
    If your dataset is reasonably small:
    ClearCollect(
       LocalJobElements,
       Filter('App-XSP-JobElements',
          JobsLookup.CustomersLookup.InvoiceFrequency <> "Daily"
       )
    )
    This forces PowerApps to load all data locally and then apply the filter — but this will break delegation and cause performance issues on large datasets.
     
    ✅ 3. Use a Custom View or Power Automate
    Pre-filter your data using a custom Dataverse view or fetch it via Power Automate with an HTTP request to Dataverse Web API, then pass it to PowerApps.
     
    Thanks!
     
    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
     

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