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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Create a view with only the latest records for a certain entity for each of the records from a related entity.

(0) ShareShare
ReportReport
Posted on by 175

Let's say I have two entities, "Sales reports" and "Location". Each year a new sales report is created for each location (a lookup field to "Location"). 

In the "Sales report" entity I would like to have a view that only shows the latest reports for each location. One possibility is to use XmlFetch Builder, does anyone have any clues of how that could look?

Or any other suggestions?

Great thanks.

I have the same question (0)
  • Verified answer
    Diogo Machado Profile Picture
    Microsoft Employee on at

    Hello Poja,

    From what I can understand, between those two entities you have a 1 to N relationship like bellow:

    Location 1 : N Sales Report

    With this, you can use the already built in functionality to create views on Sales Report. However, you would have to create multiple views for each location, just because of the relationship you have. See the image bellow on how you should build your view

    pastedimage1585302076415v1.png

    As you can see on the image above, you can use Edit Filter Criteria to build your view, then if you scroll down you will a section for "Related". Here you would select "Location" and then select a field from location and filter like that.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Subra Profile Picture

Subra 128

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 99 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 86

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans