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 365 | Integration, Dataverse...
Answered

Roll-up Queries in dynamics 365 for sales

(0) ShareShare
ReportReport
Posted on by 1,085

Hello Community Experts,

I would like to learn about roll-up queries

Could anybody please guide me on when to use it and how to work with that concept?

Kindly guide,

Best Regards,

Sumaira Noor

I have the same question (0)
  • Verified answer
    ba365guy Profile Picture
    2,950 on at

    You might want to take a look at the following:

    docs.microsoft.com/.../create-edit-goal-rollup-query-sales

    docs.microsoft.com/.../sample-use-rollup-queries-track-goals

  • Sumaira Noor Profile Picture
    1,085 on at

    Thanks for the response ba365guy.

    I'm able to create roll-up queries but I'm not understanding where it will be used and when.

    I mean, Is it used to only view records within the roll-up form or it has other uses also?

    Roll_2D00_up.PNG

    Please guide

    Best Regards,

    Sumaira Noor

  • Verified answer
    ba365guy Profile Picture
    2,950 on at

    one of the main application is to configure Goals, Goal metrics

  • Sumaira Noor Profile Picture
    1,085 on at

    Thanks again for the response ba365guy.

    I have added the roll-up query along with goal metrics to goal.

    How will the roll up query result be and where to see the result?

    Roll_2D00_up1.PNG

    Kindly guide,

    Best Regards,

    Sumaira Noor

  • Verified answer
    ba365guy Profile Picture
    2,950 on at

    When ever KPIs are produced against these goals, the condition in the roll-up query will be considered. 

    The records resulted based on the roll-up query will be considered against the total goal amount (or quantity) mentioned in goal. 

    The resultant records will not be displayed here.

    If you want to see the records, it will be visible in the roll-up query itself. On click on "View Records"

    The main intention of this is to create a filtering criteria to roll up the total amount (or quantity) to compare with the target goal. 

  • Suggested answer
    AJ-22040756-0 Profile Picture
    on at

    Hi Partner,

    Here's a brief description about rollup query 

    Rollup query

    Rollup queries help you gather data about a goal and all child goals. Thinking back to the business scenario about goals, XYZ’s sales managers wanted sales people on their team to track individual goals. A rollup query can be used to gather the data to measure the goals against.

    Here is an example of a Rollup Query to measure a sales rep’s actual revenue. We want to measure “Won” Opportunities where the Actual Revenue is greater than $100 and the Account related to the Opportunity has an Account Type of “Customer”.

    pastedimage1580454215011v2.png

    Creating rollup queries
    To create a rollup query, follow these steps:
    1. Start CRM, go to the Sales module, and then click on Rollup Queries.
    2. On the Rollup Queries ribbon bar, in the Records group, click on New.

    pastedimage1580453888747v1.png

    3. Enter the following required fields:
    i. Name: Enter a clear, concise name for the rollup query
    ii. Owner: Defaults to the currently logged in user
    iii. Entity Type: Define the entity for which this query will be run
    4. Under Query, use the controls to add the criteria for your query. The criteria that you can add depends on the entity type you have chosen.
    5. To test the query, click on View Records.
    6. Click on Save and Close.

  • Sumaira Noor Profile Picture
    1,085 on at

    Thanks for the help ba365guy and Akash Jain

  • happysingh0009 Profile Picture
    160 on at

    i want to use rollup query result in workflow. I used rollup query on contacts and now i want to send email to resultant contacts. but in workflow there is no option to provide dynamic email.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans