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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

showing total number of won opportunities grouped by each owner using reports CRM 2016 on prem?

(0) ShareShare
ReportReport
Posted on by 522

Hi

I want report should only display the total count of won opportunities or total actual revenue grouped by owner in CRM 2016 on prem.

Number of records I have is approx 100.

How can I achieve it?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    I am using Report Wizard (OOB report).

    Select Opportunity

    4722.21.PNG

    set the filter to be  status equal won

    1732.19.PNG

    set as below

    8688.20.PNG

    double click owner, and set the Summary type = count

    4722.21.PNG

    Double Click the Actual revenue and set the Summary type = Sum

    3364.23.PNG

    Result

    7673.24.PNG

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    Please refer below old post  -

    community.dynamics.com/.../68395

  • megha18 Profile Picture
    522 on at

    Hi  Wei Jie Fun,

    Thanku for your prompt solution, can I only display the name of the owners and count only?Like if I dont add topics and actual revenue  as columns system will not allow me as I atleast have to add 1 column.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    if you are using oob report, unfortunately, minimum one column is needed. Else you have to build a custom SSRS.

  • megha18 Profile Picture
    522 on at

    Thanks again Wei Jie Fun,  Can you share any link for this?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Megha ,

    Please have a look below reference  -

    To build fetch XML -

    community.dynamics.com/.../group-by-using-fetchxml

    community.dynamics.com/.../aggregates-and-fetchxml-reports

    Once you build fetch XML , follow below steps to create SSRS report.

    community.dynamics.com/.../ssrs-reports-for-dynamics-365-using-fetchxml

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Here is the FetchXML I build for you , you can use this -

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" aggregate="true">
      <entity name="opportunity">
        <attribute name="name" alias="opportunity_count" aggregate="count"/> 
        <attribute name="ownerid" groupby="true" alias="owner"/>
        <attribute name="estimatedvalue_base"  alias="totalamount_sum" aggregate="sum"  />
        <filter type="and">
          <condition attribute="statecode" operator="eq" value="1" />
        </filter>
      </entity>
    </fetch>
  • megha18 Profile Picture
    522 on at

    Hi Goutam ,

    Thanks for the effort u made,but this script is not working.Also even if I am downloading the fetch xml file and pasting it in the editor still it is giving me the same error.What could be the reason.

    2352.error.png

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    There was some single quote in my fetch query , try  now i have replaced with double quote.

  • gdas Profile Picture
    50,091 Moderator on at

    Did you tried with the fetchXML which I shared above after update?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans