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 / MDA: Filter a Lookup C...
Power Apps
Unanswered

MDA: Filter a Lookup Column in Bulk Edit Form or Filter Add Existing

(0) ShareShare
ReportReport
Posted on by 105
Hi good people,
 
I have a model driven app with these main entities:
An Estimate has many Cost Items (1:N).
An Estimate has many Proposal Items (1:N).
A Proposal Item has many Cost Items (1:N)
 
The Requirement: When selecting a Proposal Item (parent) for a Cost Item (child) - they both have to be children of the same Estimate as well.
 
I can achieve this easily on the Cost Item form by setting the Proposal Item lookup to "Filter by related rows":
 
The problem:
I can't find an out-of-the box way to achieve this when selecting multiple Cost Items at once. 
 
I have tried (and failed) to achieve this from both the Cost Item direction (Bulk Edit) and the Proposal Item direction (Add Existing).
 
Here is the example: The "Expansive" Estimate has 3 Proposal Items, and many Cost Items. I want to associate multiple Cost Items to the "Far Away" Proposal Item:
 
From the Cost Items direction:
On the Estimate form, I have a sub grid of Cost Items. When the user selects multiple Cost Items and click Edit, the Bulk Edit form opens and shows Proposal Items from all Estimates in the environment, not respecting the "Filter by related rows" setting:
 
Clicking in the Advanced Lookup button opens the Proposal Item Lookup view, which also contains Proposal Items related to other Estimates as well. The funny part is that you can see the "Filter by related: Estimate" selected and disabled, but, unfortunately, not respected:
Another "Unfortunately" is that the Estimate column in this view is not filterable.
 
From the Proposal Items direction:
I thought I will be able to tackle this from the Proposal Item side by allowing the users to add multiple cost items to the related item sub grid:
On the Proposal Item form I added a Cost Item sub grid (selecting the "Show related records").  
When the user is on a Proposal Item form and clicks the "Add Existing Cost Item", once again they see Cost Items that belong to Estimates other than the one the Proposal Item belongs to ("Expansive", in this case):
Clicking the Advanced Lookup button does not help either, since the Estimate column is, again, not filterable.
 
I am grateful to everyone who made it this far.
 
I see some posts on the net suggesting Jscript solutions (like this one), but they all mention that this is a problem of "filtering N:N lookups", where in my case there are no N:N relationships, as described at the beginning of this post, so maybe there is an out-of-the box solution to this problem?
 
Thanks for your help,
Gil.
 
 
 
I have the same question (0)
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    Your scenario is similar to Opportunity / Opportunity Product ( Dynamic sales/ customer service products). ( not 100% match).
    Have to you tried to check that ?  if not, please have a try, it might give you some ideas.
    Good luck.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 875

#2
Valantis Profile Picture

Valantis 530

#3
11manish Profile Picture

11manish 432

Last 30 days Overall leaderboard