

{"id":12306,"date":"2018-03-30T10:52:01","date_gmt":"2018-03-30T10:52:01","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=12306"},"modified":"2025-02-27T13:14:31","modified_gmt":"2025-02-27T07:44:31","slug":"tableau-constant-line","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/","title":{"rendered":"Tableau Constant Line &#8211; Adding Constant Line in Tableau"},"content":{"rendered":"<p>In our last tutorial, we saw <a href=\"https:\/\/data-flair.training\/blogs\/tableau-parameter-tutorial\/\"><strong>Tableau Parameter Tutorial<\/strong><\/a>. Here, in this tutorial, we are going to learn about Constant Line in Tableau and its different types with examples. So, let us start!!<\/p>\n<h3>Tableau Constant Line<\/h3>\n<p>This is simply a line we add to a graph that has a value that doesn&#8217;t change. This value is typically hardcoded (or set) and is not determined by other values in the graph. For example, if we wanted to show the value of pi (3.1415927 \u2013 depending on the precision you want to show), we can use a constant line in tableau.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/tableau-sparkline-chart\/\"><strong>Let&#8217;s Discuss How to Create Sparklines Chart<\/strong><\/a><\/p>\n<h3>Creating Constant Line in Tableau<\/h3>\n<p>These are the following steps to edit Constant line in tableau:<\/p>\n<p>i. Click on the drop-down in the Marks card and change the mark to Circle.<\/p>\n<p>ii. From Measures, drag Salary\/Winnings $ to Columns.<\/p>\n<p>iii. From Measures, drag Endorsements $ to Rows<\/p>\n<p>iv. From Dimensions, drag Sport to Color.<\/p>\n<p>v. From Dimensions, drag Athlete to Detail.<\/p>\n<p>vi. On the sidebar, click on the Analytics tab to activate it.<\/p>\n<p>vii. Under Summarize, drag Constant Line from the Analytics tab and drop it on the SUM(Salary\/Winnings $) placeholder:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-413.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12317 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-413.png\" alt=\"Step. 7 Creating Constant Line in Tableau\" width=\"586\" height=\"271\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-413.png 586w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-413-150x69.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-413-300x139.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/tableau-trend-line\/\"><strong>Read about Tableau Trend Line and how to create it\u00a0in detail<\/strong><\/a><\/p>\n<p>viii. Enter the value 20:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-414.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12319 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-414.png\" alt=\"Creating Constant Line in Tableau\" width=\"352\" height=\"136\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-414.png 352w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-414-150x58.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-414-300x116.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<p>ix. Right-click on the constant line that was added and select Edit.<\/p>\n<p>x. Set the Fill Above: color to None and the Fill Below: color to a light gray color:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-415.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12320 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-415.png\" alt=\"Creating Constant Line in Tableau\" width=\"462\" height=\"475\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-415.png 462w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-415-146x150.png 146w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Screenshot-415-292x300.png 292w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p>xi. Right-click on the constant line again and select Format.<\/p>\n<p>xii. On the Format sidebar, under the Constant Line Label section, select alignment. Set the Vertical alignment to Top.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/tableau-story-line\/\"><strong>Let&#8217;s Create a Story Line in Tableau<\/strong><\/a><\/p>\n<p>xiii. From the Analytics tab, drag the Constant Line again, this time placing it on SUM(Endorsements $) placeholder.<\/p>\n<p>xiv. Set the constant value to 40.<\/p>\n<p>xv. Right-click on the new constant line and select Edit.<\/p>\n<p>xvi. Under Formatting, set the Fill Above color to a light gray color and the Fill Below color to None.<\/p>\n<p>xvii. Right-click on the constant line again and select Format.<\/p>\n<p>xviii. On the Format sidebar, under the Reference Line Label section, select Alignment.<br \/>\nSet the Vertical alignment to Bottom.<\/p>\n<h3>Conclusion<\/h3>\n<p>In this tutorial, we learned about adding a constant line in Tableau, its functions and appropriate uses. Hope you liked the tutorial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last tutorial, we saw Tableau Parameter Tutorial. Here, in this tutorial, we are going to learn about Constant Line in Tableau and its different types with examples. So, let us start!! Tableau&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":12423,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[2919,3131,4117,14147,14198,14251],"class_list":["post-12306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tableau","tag-constant-line-in-tableau","tag-creating-constant-line-in-tableau","tag-edit-constant-line-tableau","tag-tableau-add-constant-line-tableau","tag-tableau-constant-line","tag-tableau-drop-lines"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tableau Constant Line - Adding Constant Line in Tableau - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what is a constant line in Tableau with example, how to use Constant Line in Tableau, how to edit it 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\/tableau-constant-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tableau Constant Line - Adding Constant Line in Tableau - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what is a constant line in Tableau with example, how to use Constant Line in Tableau, how to edit it etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/\" \/>\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-30T10:52:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-27T07:44:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Tableau-Constant-Line-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=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tableau Constant Line - Adding Constant Line in Tableau - DataFlair","description":"Learn what is a constant line in Tableau with example, how to use Constant Line in Tableau, how to edit it 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\/tableau-constant-line\/","og_locale":"en_US","og_type":"article","og_title":"Tableau Constant Line - Adding Constant Line in Tableau - DataFlair","og_description":"Learn what is a constant line in Tableau with example, how to use Constant Line in Tableau, how to edit it etc.","og_url":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-30T10:52:01+00:00","article_modified_time":"2025-02-27T07:44:31+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Tableau-Constant-Line-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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Tableau Constant Line &#8211; Adding Constant Line in Tableau","datePublished":"2018-03-30T10:52:01+00:00","dateModified":"2025-02-27T07:44:31+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/"},"wordCount":395,"commentCount":2,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Tableau-Constant-Line-01.jpg","keywords":["Constant Line in Tableau","Creating constant Line in Tableau","edit constant line tableau","tableau add constant line tableau","tableau constant line","tableau drop lines"],"articleSection":["Tableau Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/","url":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/","name":"Tableau Constant Line - Adding Constant Line in Tableau - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Tableau-Constant-Line-01.jpg","datePublished":"2018-03-30T10:52:01+00:00","dateModified":"2025-02-27T07:44:31+00:00","description":"Learn what is a constant line in Tableau with example, how to use Constant Line in Tableau, how to edit it etc.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/tableau-constant-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Tableau-Constant-Line-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Tableau-Constant-Line-01.jpg","width":1200,"height":628,"caption":"Tableau Constant Line - Adding Constant Line in Tableau"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/tableau-constant-line\/#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 Constant Line &#8211; Adding Constant Line in Tableau"}]},{"@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\/12306","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=12306"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12306\/revisions"}],"predecessor-version":[{"id":144256,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12306\/revisions\/144256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/12423"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=12306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=12306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=12306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}