Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Using rollup field, can I filter on dates such as this week or last week etc?

Posted on by 45

I have a field that sums a total value from several related records of one entity (User field gets populated with data from field on tasks they are owner on).

Using normal filtering in D365 it is possible to filter on this week and last week etc. This functionality is however missing in rollup and calculated fields filtering. What i want is to only populate the rollup field for the tasks for this and last week.

Is this possible in any semi simple way?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Using rollup field, can I filter on dates such as this week or last week etc?

    Hi HtFranzen,

    You can only have this fixed date value or other  as shown below in the rollup field:

    pastedimage1664855099198v1.png

    It doesn't support other filters(this week or last week) which are available on date field in query builder, which is by-design.

    However, Perhaps you can use indirect methods to achieve your goal:

    1.Create two date&time field named 'start Date' and 'end Date' in the related entity,

      Their format must be "Date and Time", so that they could be used in roll up field condition.

    2.Create a schedule Power Automate run everyday.

      Update the entity: set the start Date to DateAdd(Now(),-7)) and end Date to Now();

    3.Go to your roll up field property, and set up the filter condition, set the date field is less than endDate and created on is larger than startDate.

    If you are not clear about my description, perhaps you can share your screenshots about your rollup fields so that I can easily reproduce your scenario to provide detailed steps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans