

{"id":10273,"date":"2018-03-08T11:19:54","date_gmt":"2018-03-08T11:19:54","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=10273"},"modified":"2025-03-01T16:06:29","modified_gmt":"2025-03-01T10:36:29","slug":"aggregate-functions","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/","title":{"rendered":"Tableau Aggregate Functions with Examples"},"content":{"rendered":"<p>In this tutorial, we are going to learn about Aggregate Functions in Tableau and different types of Tableau Aggregate Functions with examples. So, let us start!!!<\/p>\n<h3>Tableau Aggregate Functions<\/h3>\n<p>To get to these capacities, essentially select Aggregate from the capacity drop-down rundown on the Create Calculated Field window. In the event that you&#8217;d get a kick out of the chance to return to a portion of the past Tableau Essentials articles we&#8217;ve discharged on alternate sorts of capacities, you can visit them in the connections toward the finish of the post.<\/p>\n<p>Presently, how about we make a plunge directly into the distinctive kinds of Aggregate Functions with a few cases. A large portion of these capacities will be exceptionally comfortable to anybody with Excel involvement.<\/p>\n<p>Let&#8217;s see <strong><a href=\"https:\/\/data-flair.training\/blogs\/tableau-show-me-menu\/\">Tableau Show Me Menu I <\/a><\/strong>and\u00a0<strong><a href=\"https:\/\/data-flair.training\/blogs\/tableau-show-me\/\">Tableau Show Me Menu II<\/a><\/strong> in detail.<\/p>\n<h3>Types of Aggregate Functions in Tableau<\/h3>\n<p>This is the list of Tableau Aggregate Functions, let&#8217;s discuss them one by one:<\/p>\n<h4>a. ATTR perform<\/h4>\n<p>ATTR(expression)\u00a0Aggregate Functions<\/p>\n<p>The ATTR perform, short for an attribute, returns worth|a worth|a price} if all of the rows have one value. If all of the rows don&#8217;t match, it&#8217;ll come back a price of \u201c*\u201d. Null values are unnoticed. Here\u2019s Associate in Nursing example:<\/p>\n<p>ATTR([City]) = the big apple town<\/p>\n<h4>b. AVG perform<\/h4>\n<p>AVG(expression)\u00a0Aggregate Functions<\/p>\n<p>The AVG perform returns the type of all values within the expression. AVG will solely be used with fields that ar numeric. Null values ar unnoticed. Here\u2019s Associate in Nursing example:<\/p>\n<p>AVG([Profit]) = 156<\/p>\n<h4>c. COUNT perform<\/h4>\n<p>COUNT(expression)\u00a0Aggregate Functions<\/p>\n<p>A count can come back quantity of things during a cluster. Null values aren&#8217;t counted. Here\u2019s Associate in Nursing example:<\/p>\n<p>COUNT(\u2018OrderID\u2019) = fifty two,909<br \/>\nCOUNTD perform<br \/>\nCOUNTD(expression)<\/p>\n<p>The CountD perform can come back distinct things during a cluster. Null values aren&#8217;t counted. every distinctive item is counted just one occasion. This performance isn&#8217;t out there for workbooks that were created before Tableau Desktop v8.2, workbooks that use MS stand out or text files as a knowledge supply, workbooks that use heritage connections and workbooks that use MS Access knowledge sources. Here\u2019s Associate in Nursing example:<br \/>\nCOUNTD(\u2018State\u2019) = fifty<\/p>\n<p>Let&#8217;s revise <a href=\"https:\/\/data-flair.training\/blogs\/tableau-lod\/\"><strong>Tableau\u00a0LOD<\/strong><\/a> &amp; <a href=\"https:\/\/data-flair.training\/blogs\/tableau-operators\/\"><strong>Tableau Operators<\/strong><\/a> in detail.<\/p>\n<h4>d. MAX perform<\/h4>\n<p>MAX(expression)\u00a0Aggregate Functions<\/p>\n<p>The liquid ecstasy perform returns the most of one expression across all records or the most of 2 expressions for every record. the 2 arguments should be identical kind. This performance can come back a price of NULL if either argument is NULL. Here\u2019s Associate in Nursing example:<\/p>\n<p>MAX([Age]) = ninety one<\/p>\n<h4>e. MEDIAN perform<\/h4>\n<p>MEDIAN(expression) Aggregate Functions<\/p>\n<p>This perform returns the median of one expression, and it will solely be used with numeric fields. Null values ar unnoticed. The median is that the middle variety of a sequence. Here\u2019s Associate in Nursing example:<\/p>\n<p>MEDIAN(4,7,15,27,100) = 15<\/p>\n<h4>f. MIN perform<\/h4>\n<p>MIN(expression)\u00a0Aggregate Functions<\/p>\n<p>Similar to the liquid ecstasy perform, the MIN performs returns the minimum of one expression across all records or the minimum of 2 expressions for every record. MIN returns a price of NULL if either of the 2 arguments is NULL. the 2 arguments should be of an identical kind. Here\u2019s Associate in Nursing example:<\/p>\n<p>MIN([Age]) = one<\/p>\n<h4>g. PERCENTILE perform<\/h4>\n<p>PERCENTILE(expression, number)\u00a0Aggregate Functions<\/p>\n<p>The centile perform can come back the centile expression adores the given variety. Values that you simply will use for the quantity ar between zero and one. If you utilize zero.50, then it&#8217;ll invariably come back the median variety. Here\u2019s Associate in Nursing example:<br \/>\nPERCENTILE([PROFIT],0.66) = 43.66<\/p>\n<p>Let&#8217;s read about<a href=\"https:\/\/data-flair.training\/blogs\/tableau-data-quality-problems\/\"><strong> How to deal with Data Quality Problems in\u00a0Tableau<\/strong><\/a><\/p>\n<h4>h. STDEV perform<\/h4>\n<p>STDEV(expression)\u00a0Aggregate Functions<\/p>\n<p>The STDEV perform stands for normal deviation and could be a applied mathematics perform. it&#8217;ll come back the applied mathematics variance for all the values during a given expression supported a sample of the population.<\/p>\n<h4>i. STDEVP perform<\/h4>\n<p>STDEVP(expression)\u00a0Aggregate Functions<\/p>\n<p>The STDEVP perform is comparable to the applied mathematics variance perform higher than, however, it&#8217;ll instead come back the applied mathematics variance for all of the values during a given expression supported a biased population.<\/p>\n<h4>j.\u00a0 SUM perform<\/h4>\n<p>SUM(expression)\u00a0Aggregate Functions<\/p>\n<p>Very merely, this performs sums all of the values in Associate in Nursing expression. Here\u2019s Associate in Nursing example:<br \/>\nSUM(4,5,6) = 15<\/p>\n<h4>k. VAR perform<\/h4>\n<p>VAR(expression)\u00a0Aggregate Functions<\/p>\n<p>Another applied mathematics perform, volt-ampere can come back the applied mathematics variance of all the values during a given expression supported a sample of the population.<br \/>\nVARP perform<br \/>\nVARP(expression)<\/p>\n<p>As above, however, the VARP perform can come back the applied mathematics variance of all the values during a given expression supported the whole population.<br \/>\nRelated Topics- <strong><a href=\"https:\/\/data-flair.training\/blogs\/tableau-data-blending\/\">Tableau Data Blending<\/a><\/strong> &amp;\u00a0<strong><a href=\"https:\/\/data-flair.training\/blogs\/tableau-field-operations\/\">Tableau Field Operations<\/a><\/strong><\/p>\n<h3>Conclusion<\/h3>\n<p>In this tutorial, we learned about the various functions available in Tableau Aggregate function with examples. Furthermore, if you have any queries, feel free to ask in a comment section.<\/p>\n<p>See Also-\u00a0<a href=\"https:\/\/data-flair.training\/blogs\/adding-worksheets-renaming-worksheet\/\"><strong>Adding Worksheets And Renaming Worksheet In Tableau<\/strong><\/a><br \/>\n<strong>For reference<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn about Aggregate Functions in Tableau and different types of Tableau Aggregate Functions with examples. So, let us start!!! Tableau Aggregate Functions To get to these capacities,&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":10293,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[390,1223,1279,3013,8608,8626,8728,9459,13811,13812,13969,14152,15331],"class_list":["post-10273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tableau","tag-aggregate-functions","tag-attr-perform","tag-avg-perform","tag-count-perform","tag-max-perform","tag-median-perform","tag-min-perform","tag-percentile-perform","tag-stdev-perform","tag-stdevp-perform","tag-sum-perform","tag-tableau-aggregate-functions","tag-var-perform"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tableau Aggregate Functions with Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about Tableau Aggregate Functions with examples and Types like ATTR, AVG, COUNT, MAX, MEDIAN, MIN,PERCENTILE, SUM, VAR etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/aggregate-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tableau Aggregate Functions with Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about Tableau Aggregate Functions with examples and Types like ATTR, AVG, COUNT, MAX, MEDIAN, MIN,PERCENTILE, SUM, VAR etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/aggregate-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-08T11:19:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-01T10:36:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Aggregate-function-in-Tableau-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tableau Aggregate Functions with Examples - DataFlair","description":"Learn about Tableau Aggregate Functions with examples and Types like ATTR, AVG, COUNT, MAX, MEDIAN, MIN,PERCENTILE, SUM, VAR etc.","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:\/\/data-flair.training\/blogs\/aggregate-functions\/","og_locale":"en_US","og_type":"article","og_title":"Tableau Aggregate Functions with Examples - DataFlair","og_description":"Learn about Tableau Aggregate Functions with examples and Types like ATTR, AVG, COUNT, MAX, MEDIAN, MIN,PERCENTILE, SUM, VAR etc.","og_url":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-08T11:19:54+00:00","article_modified_time":"2025-03-01T10:36:29+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Aggregate-function-in-Tableau-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Tableau Aggregate Functions with Examples","datePublished":"2018-03-08T11:19:54+00:00","dateModified":"2025-03-01T10:36:29+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/"},"wordCount":852,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Aggregate-function-in-Tableau-01.jpg","keywords":["Aggregate Functions","ATTR perform","AVG perform","COUNT perform","MAX perform","MEDIAN perform","MIN perform","PERCENTILE perform","STDEV perform","STDEVP perform","SUM perform","Tableau Aggregate Functions","VAR perform"],"articleSection":["Tableau Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/aggregate-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/","url":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/","name":"Tableau Aggregate Functions with Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Aggregate-function-in-Tableau-01.jpg","datePublished":"2018-03-08T11:19:54+00:00","dateModified":"2025-03-01T10:36:29+00:00","description":"Learn about Tableau Aggregate Functions with examples and Types like ATTR, AVG, COUNT, MAX, MEDIAN, MIN,PERCENTILE, SUM, VAR etc.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/aggregate-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Aggregate-function-in-Tableau-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Aggregate-function-in-Tableau-01.jpg","width":1200,"height":628,"caption":"Tableau Aggregate Functions"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/aggregate-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Tableau Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/tableau\/"},{"@type":"ListItem","position":3,"name":"Tableau Aggregate Functions with Examples"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/10273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=10273"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/10273\/revisions"}],"predecessor-version":[{"id":144378,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/10273\/revisions\/144378"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/10293"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=10273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=10273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=10273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}