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 CRM (Archived)

Calculate an average value

(0) ShareShare
ReportReport
Posted on by 80

I have a client that is on CRM2015, but Update 1 has not been applied yet. I need to compute the average value based on the following criteria: Find the average number of days it takes an Account Manager to close a project.

So...to break it down:

Project 1: takes 5 days

Project 2: takes 15 days

Project 3: takes 12 days

Project 4: takes 7 days

Logically, I should add up total days and then divide by the number of projects to get my average.

29 days divided by 4 = 7.25 is the avg of these numbers

I have created rollup fields in the User record for both -- Total Completed Projects (using whole number) and Total Days to Complete (which is a whole number duration field). All is good up to this point...

Now if I use a calculated field to divide Total Days to Complete by the Number of Projects, I should get my average value. Unfortunately I have found that since Total Days to Complete is a duration field it cannot be used in the calculation.

Any advice on how I can accomplish this task would be great.

Thank you.

Stacey

*This post is locked for comments

I have the same question (0)
  • Aileen Gusni Profile Picture
    44,524 on at

    Stacey,

    You can use the aggregate XML query

    Example:

    dynamicsofdynamicscrm.wordpress.com/.../aggregate-fetchxml-queries-for-dynamics-crm-20112013

    Hope this helps.

    Thanks.

  • StaceyKCRM Profile Picture
    80 on at

    Thank you for the suggestion Aileen!

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans