Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have been trying to do this without using js, I think it won't work with a rollup field because opportunities aren't linked to my entity, and I didn't find the right function to do it with a calculated field(I think it's impossible with a calculated field)

I would like to either count opportunities applying directly my conditions/filters on all opportunities, or just get the number of rows in a custom opportunities view.

Can someone help me?

Thanks, Vincent

Edit : One way to do it could be linking all opportunities existing to my entity, is it possible to do so?

*This post is locked for comments

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    Okay , you might be right . However to confirm this could you please try to create another Rollup Field examples are given here in below reference. See how it is working or not -

    technet.microsoft.com/.../dn832162.aspx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    Hi Goutam, I don't think the problem is linked with the Mass Calculated thing, since I waited 12 hours and nothing changed..

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    Hello Shidin, how can I show that opportunities have been associated?

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    Hi Vincent ,

    I am suspecting that , the Mass Calculated rollup fields job is yet to run , by default  running  12 hours interval.

    However you can  can make it happen faster. In the System Jobs entity, use the Recurring System Jobs view to filter the list and locate the Mass Calculate Rollup Fields job. With the job selected, use More Actions > Postpone and set the time to something that occurs sooner.

    Hope this helps.

  • Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    The rolled up field is correct.

    Can you show if the Opportunities have been associated to your custom entity?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    So I tried to do it earlier , but the field would only show me 0 while the result of "count of opportunity" should be the total numbers of opportunities in my data base, if I understood it right, right? 

    Can you help me?

    400505.Capture.PNG

  • Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    Yes, it is possible.

    As Atilla mentioned, create a 1:N relationship with your custom entity and associate all opportunities corresponding to your criteria to it.

    The rolled up field will automatically show you the number of Opportunity records linked to the custom entity record.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    I would like for my custom entity to be linked with a group of opportunities corresponding to some criteria, so I can count all of these opportunities, do you think it is possible?

  • Atilla Profile Picture
    Atilla 145 on at
    RE: Trying to display the number of opportunities depending on various conditions/filters with a rollup field, these opportunities aren't linked to my entity.

    Hello,

    First of all you have to create 1-N relation between your entity and opportunity.

    Then you can create a custom field(integer-wholenumber) on custom entity.

    Select field type "Rollup" and clik edit and write yoru conditions for example count open opportunity.

    2018_2D00_06_2D00_07_5F00_16_2D00_59_2D00_34.jpg

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans