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

Notifications

Announcements

No record found.

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.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans