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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Creating a report within Opportunities that show the total value of opps for a contact

(0) ShareShare
ReportReport
Posted on by 200

Hi all, 

I'm trying to set up a report for our sales manager to be able to see the following

- the total number of leads and opportunities by the contact assigned to the job

- the total revenue on jobs by the contact assigned on the job. 

for example Mr X has given us 5 jobs and the revenue of those 5 jobs total £1,000. 

Can it be done? I've created a report and can see the contact on the opportunities but then it just lists the revenue on each job and doesn't total it. 

Any assistance would be great. 

Thanks

I have the same question (0)
  • Verified answer
    dian74 Profile Picture
    2,477 Most Valuable Professional on at

    You could create a rollup field for the related number of opportunities and total revenue of the opportunities on the contact form. You can then use these fields for the report. (These already exist on the account form and are called 'Open Deals & Open Revenue which should help you configure them for contacts) Here is an article on  how to create rollup fields: Create rollup fields in Dynamics 365 Customer Engagement (on-premises) | Microsoft Docs

    PLEASE MARK THIS ANSWER AS VERIFIED

  • louisa lane Profile Picture
    200 on at

    Thanks, this worked perfectly, i didn't think of using a roll up field. I have one issue though.. some of contacts are showing as £0 revenue although when i look at their opportunities there is a figure in there. I don't understand why it isn't pulling them through but it is for other contacts? any ideas welcome.

  • dian74 Profile Picture
    2,477 Most Valuable Professional on at

    Glad it worked! Can you send me a screenshot of the calculation of the field? Is is possible that it doesn't calculate for inactive contacts, or contacts related to an inactive account?

  • louisa lane Profile Picture
    200 on at

    Hi, here is the calculation for the field.. there are about 5 contacts out of around 80 that it isn't working on, i've checked the opportunities and the revenue is showing in there in the same way as on the opportunities where the field is working on other contacts. It seems strange as on the whole it is working just not for these few contacts, they are live contacts, there is nothing different to the contacts that are working.. we also have a field for the number of opportunities they have given us and that is working, its just the revenue that isn't working on these 5 contacts.. 

    pastedimage1652175853853v1.png

    any ideas welcome as i don't get why it works for some but not others.. 

    Thanks

    Lou 

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Each Rollup field creates two accessory fields with <fieldname>_date and <fieldname>_state suffix pattern.

    Can you please add these two fields on your form and check the value of it.

    State Description

    0 => NotCalculated The field value is yet to be calculated.

    1 => Calculated The field value has been calculated per the last update time in _date field.

    2 => OverflowError The field value calculation resulted in overflow error.

    3 => OtherError The field value calculation failed due to an internal error. The following run of the calculation job will likely fix it.

    4 => RetryLimitExceeded The field value calculation failed because the maximum number of retry attempts to calculate the value was exceeded due to high number of concurrency and locking conflicts.

    5 => HierarchicalRecursionLimitReached The field value calculation failed because the maximum hierarchy depth limit for the calculation was reached.

    6 => LoopDetected The field value calculation failed because a recursive loop was detected in the hierarchy of the record.

    docs.microsoft.com/.../define-rollup-fields

    Also, have you tried calculating the value of rollup field manually by clicking on Refresh button on form.

    Online recalculation option. If you hover over the rollup field on the form, you can see the time of the last rollup and you can refresh the rollup value by choosing the Refresh icon next to the field, as shown below:

    Rollup field on the account form in Dynamics 365 for Customer Engagement.

  • dian74 Profile Picture
    2,477 Most Valuable Professional on at

    You definitely want to check when the rollup calculation was ran last. Did you try manually recalculating the rollup fields on the contacts you are having issues with? 

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
BillurSamdancioglu Profile Picture

BillurSamdancioglu 55 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans