Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Create a Lookup View filter based on matching values from two related entities

(0) ShareShare
ReportReport
Posted on by

If I have an entity named entityA and another named entityB, and they both have a column named columnA that just contains some values, I want to be able to create a filter in a lookup view in entityA that only displays data/rows where both entityA and entityB's columnA values are equal.

As an example:

Let's say entityA looks like this:          

columnA columnB columnC
123

name1

value1
532 name2 value2
624 name3 value3
892 name4 value4

and entityB looks like this:

columnA columnE columnF
892

random1

test1
412 random2 test2
532 random3 test3
234 random4 test4

Now, I want to create a filter within my entityA's lookup view to only display rows where columnA from both entities have matching values, in this case, since '892' and '532' are both present in columnA of the two entities, the lookup view will display this data:

columnA columnB columnC
892 name4 value4
532 name2 value2

(note that it will display the data from entityA)

Currently, the filter options on dynamics don't seem sophisticated enough because I'm only able to filter if the columns contain data, or if they're equal to some hard-coded preset string, so I need help with accomplishing the scenario described above.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Create a Lookup View filter based on matching values from two related entities

    Hi JYSSB7,

    Unfortunately, this is impossible. Because you can't compare columns across entities. You can only compare the columns in the same entity with 'valueof' and you need change the fetchxml of your view manually.(OOB way can't achieve this.)

    Please refer to this blog:

    Column Comparisons in FetchXML - Mark Carrington

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans