web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to create calculated or rollup field

(0) ShareShare
ReportReport
Posted on by 26

I am on the opportunity form and have a subgrid that is tied to the employee entity.  In the subgrid I have a column called Yes/No.  This Yes/No field is also on the Employee form.  Now when a user adds employees to the subgrid on the opportunity form, I will be able to see yes or no in the Yes/No column.  From here, I need to make a calculated or rollup field that would look at the subgrid and see how many records in there have Yes.  Then another calculated/rollup field where it says No.  Then I need another field that would be for % of all employees in the subgrid that have "Yes"

I tried a rollup field, the employee entity doesn't show up under related entity.

How can I do this?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi USA80,

    You mean you don't see the related entity -employee in the places marked in the picture below, right?

    pastedimage1622786352016v1.png

    And employee is a custom entity? It is a N:1 relationship with the opportunity entity?

    A rollup can only aggregate values over related entities with the 1:N relationship.It can’t aggregate over the N:N relationships.

    Also, you should be aware of certain conditions and restrictions when working with rollup fields,which may also be the cause of the error.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/define-rollup-fields#rollup-field-considerations 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • USA80 Profile Picture
    26 on at

    Its a N:N relationship

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Quoting "Define Rollup Fields":

    A rollup can be done only over related entities with the 1:N relationship. A rollup can’t be done over the N:N relationships.

    So Rollup Field is not applicable in this scenario.

    I would recommend developing the plugin that will handle Associate/Disassociate message and update related opportunity.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 176

#2
ManoVerse Profile Picture

ManoVerse 56 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans