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.
- 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.
- 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.
- 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.
- 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).
- 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.
- 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.
Published on:
Learn moreWe 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.
Related posts
From Conversations to Automation: Understanding Microsoft Copilot Studio
In November 2023, Microsoft announced that Power Virtual Agents was becoming part of Microsoft Copilot Studio. Microsoft now characterizes Cop...
Copilot Studio: Agent Integration Approaches — Tools, Knowledge, and Agents
In Copilot Studio, agent integration employs the same fundamental integration concepts and patterns used in traditional enterprise integration...
Copilot Studio: How to Plan Integration with Enterprise Systems
Integrating Microsoft Copilot Studio agents with enterprise systems transforms a basic chatbot into a secure, intelligent digital teammate tha...
Book Review : The Manager 's Path : A Guide for Tech Leaders Navigating Growth and Change by Camille Fournier
After a long time, I came across a book that is truly valuable for engineering students and professionals, especially those working in t...
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...
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...
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...
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...