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 :
Customer experience | Sales, Customer Insights,...
Answered

CRM Report Wizard - Adding Functions and Counts

(0) ShareShare
ReportReport
Posted on by 15

On the main CRM-Sales User Interface for the Opportunities table, there is the "Run Reports" list of developed reports available to the business users.

I created a new report with the Opportunities entity using the Report Wizard. I was able to add columns, filters, Group filters, Configure Sorting, and add Groupings by key fields.

However, I would like to add a "Count" function within the report to count the number of Organization levels setup within each Opportunity and report only those Opportunity records that have a count greater than 1. I also want to include that number as a column in the report. Essentially I would like the count function to be in the filters, or setup as a separate placeholder in the report, to count the number or organization level records within each Opportunity.

In the Report Wizard there doesn't appear to be an option to include either one of those capabilities.

At this time the work around is to have my users download the report to EXCEL, then add the count function, and use a Pivot table to isolate the Organization level counts.

Is there a way to include a count function in the Report Wizard? Is there a way to add SQL code to calculate counts in a report?

TIA

Randy

I have the same question (0)
  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    If i understand it correctly then you want to create report which shows only those records having Org level steup count more than 1 and same count should be appear on report.

    if yes then , please try with below approach:

    1. Create one Rollup Field on Opportunity Entity which will store the related record counts as shown below:

    pastedimage1634751028753v1.png

    2. After this in report add below filter:

    pastedimage1634751069313v2.png
    3. Now in the report we can select required columns along with new rollup field as shown below:

    pastedimage1634751155459v3.png
    Hope this helps.

    Thanks,
    Pradeep.

    Please mark this as VERIFIED. if it helps.

  • Suggested answer
    CRM-Reports-RJS Profile Picture
    15 on at

    Thanks, this helps me get started with adding new field name in the Opportunity entity.

    The new field is called "L5CapCount" and is defined as a Field Type "Rollup" and a  Data Type as a "Whole Number".

    Just curious, did you include a Business Rule that determines when to "count" the field that is being searched?

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 165

#2
ManoVerse Profile Picture

ManoVerse 161 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans