{"id":1210,"date":"2010-10-11T15:23:12","date_gmt":"2010-10-11T09:53:12","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=1210"},"modified":"2010-10-11T15:23:12","modified_gmt":"2010-10-11T09:53:12","slug":"roll-up-summary-fields-in-salesforce","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/roll-up-summary-fields-in-salesforce\/","title":{"rendered":"Roll up Summary fields in Salesforce"},"content":{"rendered":"<p><a title=\"Salesforce tutorial series\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n\/\" target=\"_blank\">To study the Roll up Summary field of salesforce, lets take example from our previous tutorial series<\/a><\/p>\n<p><strong>Note : Roll up summary field can only be defined on the master object.<\/strong><\/p>\n<p>While your formula fields calculate values using fields within a single record, <strong>roll-up summary fields<\/strong> calculate values from a set of related records, such as those in a related list. You can create roll-up summary fields that automatically display a value on a master record based on the values of records in a detail record. These detail records must be directly related to the master through a master-detail relationship.<\/p>\n<p><a title=\"Salesforce rollup fields\" href=\"https:\/\/na2.salesforce.com\/help\/doc\/en\/fields_about_roll_up_summary_fields.htm\" target=\"_blank\">refer this page, to study more about the roll up fields.<\/a><\/p>\n<p><strong>The Roll up Summary field is basically of 4 types:<\/strong><\/p>\n<ol>\n<li>Count<\/li>\n<li>Sum<\/li>\n<li>Min<\/li>\n<li>Max<\/li>\n<\/ol>\n<p><!--more--><\/p>\n<p>As, per our previous sessions on salesforce, lets create roll up field on object Course because this is the Master object.<\/p>\n<p>I want to calculate total income from a course:<\/p>\n<p>Go to <strong>App Setup | Create | Objects<\/strong> and click on New field and Select Roll up summary field.<\/p>\n<p>In Step 2, enter the field name and help text etc.<\/p>\n<p>For step 3, you will see below screen,<\/p>\n<figure id=\"attachment_1270\" aria-describedby=\"caption-attachment-1270\" style=\"width: 453px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Salesforce-Rollup-Summary.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1270 \" title=\"Salesforce Rollup Summary field\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Salesforce-Rollup-Summary.jpg?resize=453%2C374&#038;ssl=1\" alt=\"Salesforce Rollup Summary field\" width=\"453\" height=\"374\" \/><\/a><figcaption id=\"caption-attachment-1270\" class=\"wp-caption-text\">Salesforce Rollup Summary field<\/figcaption><\/figure>\n<p>In above image, at 1 we have to select the child object, at 2 we have to select the field on which it should calculate.<\/p>\n<p>In our case, Fees paid field is of Formula type which works on currency.<\/p>\n<p>And in section 3 you ca specify weather this roll up summary field include all record or any specific record which comes under the criteria you specified.<\/p>\n<p>So, after creation of Roll up field on Master object final look is shown below:<\/p>\n<figure id=\"attachment_1274\" aria-describedby=\"caption-attachment-1274\" style=\"width: 460px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Salesforce-Final-look-on-Roll-up-summary-field.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1274\" title=\"Salesforce Final look on Roll up summary field\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Salesforce-Final-look-on-Roll-up-summary-field.jpg?resize=460%2C337&#038;ssl=1\" alt=\"Salesforce Final look on Roll up summary field\" width=\"460\" height=\"337\" \/><\/a><figcaption id=\"caption-attachment-1274\" class=\"wp-caption-text\">Salesforce Final look on Roll up summary field<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>What is Roll up summary field in salesforce, what are the types of roll up summary field and how does it works<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[331],"class_list":["post-1210","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1038,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-2\/","url_meta":{"origin":1210,"position":0},"title":"Salesforce Interview Questions \u2013 Part 2","author":"Jitendra","date":"September 11, 2010","format":false,"excerpt":"Interview questions of salesforce.com, interview questions of visualforce.com and APEX","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Account Child relationship in salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Account-Child-relationship-in-salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5042,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/why-to-avoid-using-workflow-rule-and-process-builder-field-update-with-trigger\/","url_meta":{"origin":1210,"position":1},"title":"Why to avoid using Workflow rule and Process Builder field update with Trigger","author":"Jitendra","date":"February 8, 2016","format":false,"excerpt":"Consideration before using Trigger, Workflow and Process builder field update at same time in Salesforce","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Trigger Workflow and Process Builder in Salesforce","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2016\/02\/Trigger-Workflow-and-Process-Builder.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2016\/02\/Trigger-Workflow-and-Process-Builder.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2016\/02\/Trigger-Workflow-and-Process-Builder.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2016\/02\/Trigger-Workflow-and-Process-Builder.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2681,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-5\/","url_meta":{"origin":1210,"position":2},"title":"Salesforce Interview Questions &#8211; Part 5","author":"Jitendra","date":"January 24, 2012","format":false,"excerpt":"Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3218,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-question-part-15\/","url_meta":{"origin":1210,"position":3},"title":"Salesforce Interview Question \u2013 Part 15","author":"Jitendra","date":"May 24, 2013","format":false,"excerpt":"141 : User Wants to set the starting day in Calendar as \"Monday\" instead of \"Sunday\". How to get it done? Ans : Change the user locale to \"English ( United Kingdom ) \" in Personal information or User record. 142 : Why CSS is not working in PDF created\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3855,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/large-data-volumes-ldv-in-salesforce\/","url_meta":{"origin":1210,"position":4},"title":"Large Data Volumes (LDV) in Salesforce | FAQs | Interview Questions","author":"Jitendra","date":"April 18, 2014","format":false,"excerpt":"You would like to go through this useful cheat sheet for \"Query and Search\" optimization, few of this is discussed in this post as FAQ. 171 : How Standard Fields and Custom Fields related information is saved inside Salesforce Database? Is every Standard and Custom Object is created as a\u2026","rel":"","context":"In &quot;Configuration&quot;","block_context":{"text":"Configuration","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/configuration\/"},"img":{"alt_text":"Skinny Table","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/04\/Skinny-Table.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1032,"url":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/difference-in-master-detail-relationship-and-look-up-relationship-salesforce-interview-question\/","url_meta":{"origin":1210,"position":5},"title":"Difference in Master-Detail relationship and look up relationship &#8211; Salesforce Interview question","author":"Jitendra","date":"September 11, 2010","format":false,"excerpt":"Difference in Master-Detail relationship and look up relationship - Salesforce Interview question","rel":"","context":"In &quot;Tech Tips&quot;","block_context":{"text":"Tech Tips","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/others\/tips\/"},"img":{"alt_text":"Master detail and look up relationship Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Master-detail-and-look-up-relationship-Salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=1210"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1210\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=1210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=1210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=1210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}