Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Help - Rollup based on dates

Posted on by 175

My goal is to have a view that shows # of opportunities for each account based on date. Is the best approach to this

1) Create a rollup field that counts all opportunities

2) Set the view filter to only show where opportunity created between the dates

Will this adjust the count of opportunities?

Categories:
  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Help - Rollup based on dates

    Hi Partner,

    Yes, you are right. Consider that using power Automate will incur more expenses, so I provided the previous solution.

    So if my answer helped you, please mark my answer as verified.

    If you have any other questions about this thread, please feel free to let me know.

    Regards,

    Leo

  • saturation Profile Picture
    saturation 175 on at
    RE: Help - Rollup based on dates

    Interesting. I guess another option is to use Power Automate to just directly update those fields on a monthly basis as well, although there is probably more overhead.

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Help - Rollup based on dates

    Hi Partner,

    Creating a rollup field is correct way, but set filter in view is no able to filter the count of opportunities based on date.

    For example, you created a view based on account entity and add count field as a column in it, but you should noticed that the roll up field will show all the opportunity counts for each account if you don't set filter conditions in roll up field. Setting date filter in view won't work.

    So you need to set filter conditions based on date in roll up field properties directly.

    For example, you want show weekly counts of opportunities for each account, you could refer to the following steps.

    1.Create two date&time field in account named startDate and endDate, and 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. And then update the account entity, set the startDate to DateAdd(Now(),-7)) and endDate to Now();

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

    Then the roll up field will only show the count of opportunities created in each week for each account.

    Regards,

    Leo

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans