Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Rollup SUM Field Not Working

Posted on by 70

Hi,

I have 2 related entities - Reviews & Final Approval. For each proposal there would be multiple review records by multiple people, but there will only be 1 record of Final Approval. Review form has a field called 'Review Score' given by each reviewer, and in my Final Approval form, I have a field called 'Final Score' which would be the sum of all the scores from all the review records. I tried using Rollup to get that sum in my Final Score field, but somehow its not working. Its always showing 0, I keep 'Recalculating' it, but still the value remains 0. Here are few screenshots...

My Roll-Up Setting...

pastedimage1665799766629v1.png

This is my field on the form...

pastedimage1665799874147v2.png

Can someone please tell me what wrong am I doing?

Thanks!

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Rollup SUM Field Not Working

    Abdul Wahab

    Thank you for the options. Can you please elaborate on them, or do you have any example of how it is done or used?

    Thanks!

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Rollup SUM Field Not Working

    Hi D365 User 06,

    There are multiple ways. A few of them are below:

    1. Quick Create Form
    2. HTML web resource
    3. PCF control

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Rollup SUM Field Not Working

    Hi Abdul Wahab ,

    Sorry for the delayed response. Thank you for your detailed reply. So I created a Review record and allocated my score to that record, and then went to the Related records of the Review record and created a record in Final Approval. This record is now being shown in the Associated View of the Review record. But only this one Review record is showing the Final Approval record since its created from that review record. I have multiple review records with different scores, but for all of them, there should be only one Final Approval record which will show the sum of all the Review scores. For this to happen, I need to see all my Review records in a subgrid in Final Approval. Then the Rollup will be able to calculate. Now my problem is Review is a child record of the entity Proposal. So each Proposal will have multiple Reviews, and after all the Reviews are done, 1 record is created in Final Approval with the scores of all these Reviews. So since the relation between the Reviews and Final Approval is indirect, its not showing in the subgrid. So do you have an idea as to how to show indirectly related entities in a Subgrid?

    Thanks!

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Rollup SUM Field Not Working

    Hi D365 User 06,

    The review is the parent table. Final Approval is the child table. For the rollup to work you must have records in both tables and these records must be associated with each other.

    As per your design, The lookup columns Review of the parent table 'Review' exists in the child table Final Approval. In other words, you have one Review against multiple Final Approvals.

    To test your rollup. Do one thing.

    1. Create a record in the review table.
    2. From Review table. Navigate to the related tab.
    3. Select the Final Approval section.
    4. Create a new record for Final Approval. Allocate values for the score

    After creating records in such a manner refresh the rollup column. Now it's started showing value to you.

    For more details about roll-up. Read it out: Calculated and rollup columns (Microsoft Dataverse) - Power Apps | Microsoft Learn

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Rollup SUM Field Not Working

     Abdul Wahab 

    As I had mentioned in my previous post, the related records from Review is not being shown in the Subgrid or Associated View of Final Approval. I think this is because there is no lookup in the Review form for Final Approval, as Final Approval will be created only after all the Reviews are done. If they have 4 Reviews with 4 Reviewers, only after these 4 records are created, a Final Approval record will be created.

    Here are some screenshots of my Subgrid and Associated View. In both cases it says 'No data available'...

    pastedimage1665925280266v3.png

    pastedimage1665925158125v2.png

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Rollup SUM Field Not Working

    Hi D365 User 06,

    After seeing the relationship, the review is the column on the child table (Final Approval)...

    Can you please do one thing for me? 

    Create 2 parent records. Create 3 child records against each parent record. Show me 2 screenshots from the parent record that is showing child records from the related tab. Do not forget to include the Review column from the child tab (Final Approval).

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Rollup SUM Field Not Working

    I think the problem is related to Reviews entity not having any lookup to Final Approval entity. Review entity has a lookup to Proposal entity, from which you select the Proposal to which these reviews are related to. I tried adding the same rollup field in my Proposal entity, and it worked. Its showing me the Final score correctly. However there is no lookup field connecting Review entity and Final Approval. The only common factor connecting these 2 entities is the Proposal name (which is a lookup in both the entities). So due to this reason, I'm trying to add a subgrid of all the Reviews in Final Approval, but thats also not working. If the subgrid will work, Rollup will also work. So is there anyway to show all the Reviews related to a particular Proposal in the Final Approval entity?

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Rollup SUM Field Not Working

     Abdul Wahab 

    This is my relationship screenshot...

    pastedimage1665805908275v1.png

  • D365 User 06 Profile Picture
    D365 User 06 70 on at
    RE: Rollup SUM Field Not Working

     Bipin Kumar 

    Thank you for your response. I can see those 2 extra fields in my columns list, and have added the _state field on the form. It shows the value 1, but the main Final Scores field still shows 0...

    pastedimage1665805790511v2.png

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Rollup SUM Field Not Working

    Hi D365 User 06,

    Can you please share relationship screenshot?

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

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