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 CRM (Archived)

How do I count the number of child records on a parent and make a view out of the result?

(0) ShareShare
ReportReport
Posted on by 221

I want to create a View that shows sales staff the Opportunities they have open that do not have any quotes attached to them. We're trying to bring greater visibility to the status of their opportunities.

Doing this doesn't appear possible using out-of-the-box Advanced Find filters.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    PS Profile Picture
    23,577 on at

    Create a roll up field on opportunity, which should counts quotes. Add this field as a column on any opportunity view or create a new view with desired filters

    blog.sonomapartners.com/.../dynamics-crm-2015-calculated-and-rollup-fields.html

  • Aileen Gusni Profile Picture
    44,524 on at

    Hi f23fzf34ffavcz2t56,

    First of all, what is your CRM Version?

    If it is 2015 and above then you can use rollup field, do note rollup field is a field that can be seen by users through View as well..It has also condition to meet, example: only Active Quotes.

    So, it will calculate the number of Quotes then if it is null or zero, it means, the opportunities do not have any quotes attached to them.

    Yes, you are right, advanced find cant do this because it does not support "NOT IN" clause in the advanced find filter criteria.

    Otherwise, if you use CRM 2013 or lower then you should create a custom field that you need to auto-rollup calculation to update it.

    Hope this helps.

    Thanks

  • Suggested answer
    Drew Poggemann Profile Picture
    4 on at

    Hi,

    Prashant's answer is great and should help you but another suggestion here from a different approach is to leverage PowerBI to help you with this type of analytics.  You will be able to get much more deep analytics and look at many different types of situations utilizing this approach instead of creating a number of rollup fields.  You can add the PowerBI dashboards right into CRM Online (Dynamics 365) as well.

    powerbi.microsoft.com/.../microsoft-dynamicscrm

    technet.microsoft.com/.../dn708055.aspx

    Thanks,

  • PS Profile Picture
    23,577 on at

    That's a good one Drew, but I Guess, POWER BI might require licensing based on data size

  • Drew Poggemann Profile Picture
    4 on at

    Hi Prashant,

    Yes it does but I have been able to connect and do a lot with it using the OData connector with very little impact to data size.  It has been great so far and only using minimal (10MB) of size.  I think the approach is definitely worth reviewing.

    Thanks much!

  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    Hi

    This is a simple thing to do

    On the Opportunity Create a Roll up field to count the number of quotes

    51437.2.png

    Then Create a new or edit a current view and filter so that it only shows where the value of that field = 0

    51437.2.png

  • f23fzf34ffavcz2t56 Profile Picture
    221 on at

    Hi Mark,

    The field has been created and I can put it on a form but I can't add it to the filter criteria of the advanced find. Do you know why that is?

    14_5F00_17_5F00_17_2D00_Field_5F00_-Count-of-Quotes-of-Opportunity.png

  • Verified answer
    PS Profile Picture
    23,577 on at

    Hi

    Make your field searchable option from 'No' to 'Yes'; highlighted in the below screenshot. Once done, save and publish

    0005.1.PNG

    Now create your advanced find query.

  • f23fzf34ffavcz2t56 Profile Picture
    221 on at

    You are the man, Prashant. That did it.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans