{"id":3323,"date":"2023-04-12T15:26:35","date_gmt":"2023-04-12T15:26:35","guid":{"rendered":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/"},"modified":"2023-04-12T17:27:06","modified_gmt":"2023-04-12T17:27:06","slug":"when-to-use-sum-or-lookup","status":"publish","type":"post","link":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/","title":{"rendered":"When to Use SUM or LOOKUP?"},"content":{"rendered":"<p>Anaplan provides numerous calculation functions which deliver enhanced analysis within a model. Two common and related functions are SUM and LOOKUP. SUM enables the summation of values based on a list or time formatted line item or property in a source with a matching dimension in a target. SUM achieves this through user-entered mappings within function parameters to determine criteria for the values in the source to be summed. LOOKUP is used when mapping from one cell or value to many, and SUM is used in contrast, summarizing multiple cells into one.<\/p>\n<p>Below is the syntax for the SUM function:<\/p>\n<p>x[SUM: y]<\/p>\n<p>\u2018X\u2019 is referring to the column holding the values to SUM.<\/p>\n<p>\u2018Y\u2019 is referring to the columns to be used as a cross-reference. You may have multiple cross-references. x[SUM: y, SUM: y_1, &#8230;]<\/p>\n<p>The key to doing this is ensuring that your \u2018x\u2019 value column is of number format, and your \u2018y\u2019 value column is a list-formatted or time period-formatted line item or property.<\/p>\n<p>Looking at an example,\u00a0let\u2019s say we have three modules; the first, \u2018Product Details,\u2019 is set up to describe products (product code, product size or volume, the category in which the product belongs, etc.).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1854 alignnone\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg\" alt=\"\" width=\"345\" height=\"135\" \/><\/p>\n<p>The second module \u2018Revenue Stats\u2019 contains revenue statistics according to product and geography.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1853 alignnone\" src=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum2-min.jpg\" alt=\"\" width=\"750\" height=\"100\" \/><\/p>\n<p>In the third module, \u2018Size Revenue Report,\u2019 which will be the module we use to perform a SUM function, we would like to SUM the revenue made per month according to the size of the products being sold. The formula would be entered into revenue line item in the Size Revenue Report module and would be as follows:<\/p>\n<p>&#8216;Revenue Stats&#8217;.Revenue[SUM: &#8216;Product Details&#8217;.Size]<\/p>\n<p>LOOKUP is used to look up a number, Boolean, time-period, list item, text, or date value in either a list or time-period from a source module according to common mappings, of which you may use multiple. This is like the SUM function; however, it does not contain an inherent aggregation in its usage. The syntax is as follows:<\/p>\n<p>x[LOOKUP: y]<\/p>\n<p>An example of LOOKUP could be as follows:<\/p>\n<p>Let\u2019s say you have two modules; one module \u2018Bonuses Table,\u2019 containing a line item \u2018Bonuses\u2019 with \u2018Region of Employment\u2019 and \u2018Job Position\u2019 dimensions with inherent bonuses data associated with those dimensions, and a second module, \u2018Employee Details,\u2019 containing \u2018Employee Names\u2019, and blank fields for \u2018Region of Employment\u2019 and \u2018Job Position\u2019. If you wanted to map an employee\u2019s bonus according to their \u2018Region of Employment\u2019 and \u2018Job Position\u2019, the LOOKUP formula used would be as follows:<\/p>\n<p>&#8216;Bonuses Table&#8217;.Bonuses[LOOKUP: Region of Employment, LOOKUP: Job Position]<\/p>\n<p>How then would you consider some general rules for deciding which function to use? Anaplan provides the general rule of thumb in the Anapedia: If your mapping table contains the Target list and maps to a Source list-formatted line item or list-formatted property then use LOOKUP.<\/p>\n<p>In juxtaposition if your mapping table contains the Source list and maps to a Target list-formatted line item or list-formatted property then use SUM.<\/p>\n<p>Ask yourself before writing a formula containing either SUM or LOOKUP, where are you writing the formula (Target)? Where is the data residing currently (Source)? How am I achieving my mapping (use the general rule of thumb)?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anaplan provides numerous calculation functions which deliver enhanced analysis within a model. Two common and related functions are SUM and LOOKUP. SUM enables the summation of values based on a list or time formatted line item or property in a source with a matching dimension in a target. SUM achieves this through user-entered mappings within&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[22],"tags":[66,68,35],"class_list":["post-3323","post","type-post","status-publish","format-standard","hentry","category-anaplan","tag-analplan-development","tag-anaplan","tag-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>When to Use SUM or LOOKUP? - QueBIT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When to Use SUM or LOOKUP? - QueBIT\" \/>\n<meta property=\"og:description\" content=\"Anaplan provides numerous calculation functions which deliver enhanced analysis within a model. Two common and related functions are SUM and LOOKUP. SUM enables the summation of values based on a list or time formatted line item or property in a source with a matching dimension in a target. SUM achieves this through user-entered mappings within&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/\" \/>\n<meta property=\"og:site_name\" content=\"QueBIT\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-12T15:26:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-12T17:27:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg\" \/>\n<meta name=\"author\" content=\"agoddard\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"agoddard\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/\"},\"author\":{\"name\":\"agoddard\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#\\\/schema\\\/person\\\/e52d72da0fd2f5f70d189343fe4f5084\"},\"headline\":\"When to Use SUM or LOOKUP?\",\"datePublished\":\"2023-04-12T15:26:35+00:00\",\"dateModified\":\"2023-04-12T17:27:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/\"},\"wordCount\":549,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/sum1-min.jpg\",\"keywords\":[\"Analplan Development\",\"Anaplan\",\"Development\"],\"articleSection\":[\"Anaplan\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/\",\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/\",\"name\":\"When to Use SUM or LOOKUP? - QueBIT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/sum1-min.jpg\",\"datePublished\":\"2023-04-12T15:26:35+00:00\",\"dateModified\":\"2023-04-12T17:27:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#\\\/schema\\\/person\\\/e52d72da0fd2f5f70d189343fe4f5084\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#primaryimage\",\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/sum1-min.jpg\",\"contentUrl\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/sum1-min.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/when-to-use-sum-or-lookup\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When to Use SUM or LOOKUP?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#website\",\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/\",\"name\":\"QueBIT\",\"description\":\"QueBIT\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/#\\\/schema\\\/person\\\/e52d72da0fd2f5f70d189343fe4f5084\",\"name\":\"agoddard\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g\",\"caption\":\"agoddard\"},\"sameAs\":[\"https:\\\/\\\/quebit.com\\\/askquebit\"],\"url\":\"https:\\\/\\\/quebit.com\\\/askquebit\\\/author\\\/agoddard\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When to Use SUM or LOOKUP? - QueBIT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/","og_locale":"en_US","og_type":"article","og_title":"When to Use SUM or LOOKUP? - QueBIT","og_description":"Anaplan provides numerous calculation functions which deliver enhanced analysis within a model. Two common and related functions are SUM and LOOKUP. SUM enables the summation of values based on a list or time formatted line item or property in a source with a matching dimension in a target. SUM achieves this through user-entered mappings within&hellip;","og_url":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/","og_site_name":"QueBIT","article_published_time":"2023-04-12T15:26:35+00:00","article_modified_time":"2023-04-12T17:27:06+00:00","og_image":[{"url":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg","type":"","width":"","height":""}],"author":"agoddard","twitter_card":"summary_large_image","twitter_misc":{"Written by":"agoddard","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#article","isPartOf":{"@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/"},"author":{"name":"agoddard","@id":"https:\/\/quebit.com\/askquebit\/#\/schema\/person\/e52d72da0fd2f5f70d189343fe4f5084"},"headline":"When to Use SUM or LOOKUP?","datePublished":"2023-04-12T15:26:35+00:00","dateModified":"2023-04-12T17:27:06+00:00","mainEntityOfPage":{"@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/"},"wordCount":549,"commentCount":0,"image":{"@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#primaryimage"},"thumbnailUrl":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg","keywords":["Analplan Development","Anaplan","Development"],"articleSection":["Anaplan"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/","url":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/","name":"When to Use SUM or LOOKUP? - QueBIT","isPartOf":{"@id":"https:\/\/quebit.com\/askquebit\/#website"},"primaryImageOfPage":{"@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#primaryimage"},"image":{"@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#primaryimage"},"thumbnailUrl":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg","datePublished":"2023-04-12T15:26:35+00:00","dateModified":"2023-04-12T17:27:06+00:00","author":{"@id":"https:\/\/quebit.com\/askquebit\/#\/schema\/person\/e52d72da0fd2f5f70d189343fe4f5084"},"breadcrumb":{"@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#primaryimage","url":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg","contentUrl":"https:\/\/quebit.com\/askquebit\/wp-content\/uploads\/2021\/10\/sum1-min.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/quebit.com\/askquebit\/when-to-use-sum-or-lookup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/quebit.com\/askquebit\/"},{"@type":"ListItem","position":2,"name":"When to Use SUM or LOOKUP?"}]},{"@type":"WebSite","@id":"https:\/\/quebit.com\/askquebit\/#website","url":"https:\/\/quebit.com\/askquebit\/","name":"QueBIT","description":"QueBIT","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/quebit.com\/askquebit\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/quebit.com\/askquebit\/#\/schema\/person\/e52d72da0fd2f5f70d189343fe4f5084","name":"agoddard","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d817b364cff1d66116debde8d1c85e5e76eeece9c5ae731b19276a6040231455?s=96&d=mm&r=g","caption":"agoddard"},"sameAs":["https:\/\/quebit.com\/askquebit"],"url":"https:\/\/quebit.com\/askquebit\/author\/agoddard\/"}]}},"_links":{"self":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts\/3323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/comments?post=3323"}],"version-history":[{"count":1,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts\/3323\/revisions"}],"predecessor-version":[{"id":3794,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/posts\/3323\/revisions\/3794"}],"wp:attachment":[{"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/media?parent=3323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/categories?post=3323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/quebit.com\/askquebit\/wp-json\/wp\/v2\/tags?post=3323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}