Loading...

Microsoft Dynamics 365 Customer Experience Analyst : Configure rollup queries

Microsoft Dynamics 365 Customer Experience Analyst :  Configure rollup queries

A rollup query in Dynamics 365 is a specialized saved query that defines the criteria for which records should be included in a rollup field calculation. Rollup fields are used to automatically aggregate data, such as counting related records, calculating totals, or finding the most recent activity. For example, a rollup query can specify which opportunities to include when calculating the total estimated revenue for an account. By creating rollup queries, organizations can control and filter the exact data that contributes to rollup fields, ensuring accurate and meaningful insights. 


 What are Rollup Queries?

A Rollup Query is a saved query in Dynamics 365 that defines which related records should be included in a rollup field calculation. Rollup fields allow you to aggregate data (like count, sum, max, min, or latest date) from related records automatically.




For example:
  • You can create a rollup field on Account to calculate the total estimated revenue of all open opportunities related to that account.
  • The rollup query defines which opportunities (e.g., only those with status = Open and estimated revenue > \$0) should be included.
Why use Rollup Queries?
  • Precision: Instead of including all related records, you can filter which ones matter.
  • Flexibility: You can create queries to target specific conditions (e.g., only high-priority cases, only active opportunities, etc.).
  • Business Insights: Provides summarized or KPI-style data right on the entity record.


Key Features
  • Entity-based – Rollup queries are tied to a specific entity (e.g., Opportunity, Case).
  • Reusable – Once created, you can use the same rollup query in multiple rollup fields.
  • Customizable – You can add filters (conditions) and relationships (like child entities).
  • Scheduled Calculation – Rollups are not instant; they refresh automatically every 12 hours (by system job), but users can also refresh them manually.


Example Scenarios
  • Sales – On an Account record, show the total estimated revenue of all active Opportunities (using a rollup query that filters opportunities by “Open” status).
  • Customer Service – On a Contact record, display the number of active cases (rollup query filters for cases where Status = Active).
  • Projects – On a Project record, calculate the sum of billable hours from related tasks (rollup query filters for tasks marked as Billable).
How Rollup Queries Work with Rollup Fields
  • Create a Rollup Query → Define the conditions (filters) for the related records.
  • Create a Rollup Field on the target entity (e.g., Account).
  • Link the Rollup Query to the Rollup Field.
  • Dynamics 365 automatically calculates and updates the rollup field based on the query’s logic.
Limitations to Keep in Mind
  • Rollups are read-only and cannot be manually edited.
  • They update once every 12 hours by default (system job), but can be refreshed on-demand.
  • Maximum of 100 rollup fields per entity and 10 rollup fields per entity can be evaluated at once in a calculation cycle.
  • Rollups cannot span across more than one N\:N (many-to-many) relationship.

In summary:
Rollup Queries in Dynamics 365 are powerful tools to filter and define which related records should be included in rollup field calculations. They allow organizations to surface meaningful KPIs directly on records (like Accounts, Contacts, or Projects), making it easier for users to see aggregated insights without building complex reports or dashboards.

Published on:

Learn more
Need help with this product?

We can help you with Microsoft Dynamics 365 Customer Experience Analyst : Configure rollup queries

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

Power Platform , D365 CE & Cloud
Power Platform , D365 CE & Cloud

Dynamics 365 CE, Power Apps, Powerapps, Azure, Dataverse, D365,Power Platforms (Power Apps, Power Automate, Virtual Agent and AI Builder), Book Review

Share post:

Related posts

Power Platform Environment Deep Dive (Part 2)

In Microsoft Power Platform, choosing the right environment type is important because each environment is designed for a different business pu...

10 days ago

Power Platform Environment Deep Dive (Part 1)

Today, in the business enterpriese world, Power Platform enables organization to build application, automate workflow, analyze data  crea...

12 days ago

Book Review : Life 3.0 by Max Tegmark

This is the third book I’ve read this year, and even though I’m still in the early chapters, it already feels like my favorite read of the yea...

1 month ago

Dataverse Views Demystified: Making Data Work for You

In Microsoft Dataverse, users do not always see all the data stored in a table. What they can view depends on their security permissions, role...

2 months ago

Decode & Fix : Shared App host initialization has timed out in Microsoft Power Apps

 Issue :While working with apps in the Microsoft Power Platform, we encountered a critical issue where the application failed to load pro...

4 months ago

Dataverse Integration Patterns: Sync vs Async vs Event-driven (Real Use Cases)

As organizations start using Microsoft Power Platform, Microsoft Dataverse is no longer just a place to store data—it becomes a key part of ho...

5 months ago

Book Review : Don't Believe Everything You Think by Joseph Nguyen

My second book of this year is "Don’t Believe Everything You Think" by Joseph Nguyen. This book was recommended by a friend who strongly belie...

6 months ago

Book Review : Scary Smart by Mo Gawdat

The first book I read in 2026 was Scary Smart by Mo Gawdat, the former Chief Business Officer at Google.In today’s world, Artificial Intellige...

6 months ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.