

{"id":10307,"date":"2018-03-08T12:52:07","date_gmt":"2018-03-08T12:52:07","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=10307"},"modified":"2025-03-01T16:02:45","modified_gmt":"2025-03-01T10:32:45","slug":"tableau-logical-functions","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/","title":{"rendered":"Logical Functions | Logic Statements in Tableau"},"content":{"rendered":"<p>In this <a href=\"https:\/\/data-flair.training\/blogs\/tableau-tutorial\/\"><strong>tableau tutorial<\/strong><\/a>, we are going to study about Tableau Logical functions and different logic statements with examples that we can perform in Tableau. So, let us start tableau Logical Functions.<\/p>\n<h3>Tableau Logical Functions<\/h3>\n<p>An operator could be an image that tells the compiler to perform specific mathematical or logical manipulations. Tableau encompasses a variety of operators accustomed to calculated fields and formulas.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/tableau-paged-workbook\/\"><strong>Read about Tableau Paged Workbook &amp; Steps to Create it<\/strong><\/a><\/p>\n<p><strong>The basic logical statements in tableau are as follows:<\/strong><\/p>\n<h4>a. CASE Statement<\/h4>\n<p>CASE expression once value1 THEN return1 once value2 THEN return2 &#8230; ELSE default come back finish<br \/>\nThe CASE statement\u00a0is employed to perform a logical check and come back values supported the result. CASE operates are often rewritten as AN IF function, however, the CASE Logical functions are usually times less complicated to jot down and shorter.<\/p>\n<p>Here\u2019s AN example of a formula:<\/p>\n<div id=\"attachment_10318\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10318\" class=\"wp-image-10318 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical1.jpg\" alt=\"Tableau CASE Statement - Logical Functions\" width=\"640\" height=\"61\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical1.jpg 640w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical1-150x14.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical1-300x29.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-10318\" class=\"wp-caption-text\">Tableau CASE Statement &#8211; Logical Functions<\/p><\/div>\n<p>This CASE statement creates a replacement field by exploring the country field. Once the worth \u201cUnited States\u201d is found, it uses \u201cUSA.\u201d once \u201cUnited Kingdom\u201d is found, it uses \u201cUK.\u201d All alternative values receive the worth \u201cWorld.\u201d<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/adding-worksheets-renaming-worksheet\/\"><strong>Let&#8217;s revise Adding Worksheets And Renaming Worksheet In Tableau<\/strong><\/a><\/p>\n<h4>b. IF Statement<\/h4>\n<p>IF check THEN worth finish \/ IF check THEN worth ELSE else finish<\/p>\n<p>Tableau IF statement creates a logical check. IF check is true THEN do y. The check a part of the operations should be a mathematician, either by employing a mathematician field within the knowledge supply or because of the results of AN expression victimization operators or logical comparisons (AND, OR, NOT).<\/p>\n<p>Here\u2019s AN example:<\/p>\n<div id=\"attachment_10319\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical2_0.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10319\" class=\"wp-image-10319 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical2_0.jpg\" alt=\"Tableau IF Statement - Logical Functions\" width=\"640\" height=\"56\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical2_0.jpg 640w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical2_0-150x13.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical2_0-300x26.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-10319\" class=\"wp-caption-text\">Tableau IF Statement &#8211; Logical Functions<\/p><\/div>\n<p>IF test1 THEN value1 ELSEIF test2 THEN value2 ELSE else finish<\/p>\n<p>You can expand the practicality of the IF logical functions with the ELSEIF by adding extra IF-THEN statements. for instance, here we will recreate our CASE formula on top of victimization AN IF-THEN-ELSEIF statement:<\/p>\n<div id=\"attachment_10320\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10320\" class=\"wp-image-10320 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical3.jpg\" alt=\"Tableau IF Statement - Logical Statement\" width=\"640\" height=\"64\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical3.jpg 640w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical3-150x15.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical3-300x30.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-10320\" class=\"wp-caption-text\">Tableau IF Statement &#8211; Logical Statement<\/p><\/div>\n<p>Same result as our CASE operate, grouping all alternative values into World and abbreviated the USA and United Kingdom of Great Britain and Northern Ireland.<\/p>\n<h4>c. IFNULL Statement<\/h4>\n<p>IFNULL(expression1, expression2)<\/p>\n<p>The IFNULL statement primarily runs a true\/false check on whether or not the worth within the tested field is NULL. The primary worth within the operate is employed if the worth isn&#8217;t null, and also the second is employed if it&#8217;s null.<\/p>\n<div id=\"attachment_10321\" style=\"width: 355px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical4_0.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10321\" class=\"wp-image-10321 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical4_0.jpg\" alt=\"Tableau IFNULL Statement - Logical\u00a0Functions\" width=\"345\" height=\"56\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical4_0.jpg 345w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical4_0-150x24.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical4_0-300x49.jpg 300w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/a><p id=\"caption-attachment-10321\" class=\"wp-caption-text\">Tableau IFNULL Statement &#8211; Logical\u00a0Functions<\/p><\/div>\n<p>If any country\u2019s Total Population doesn&#8217;t have a price, then it&#8217;ll be reset as zero and removing the null from the fresh created field.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/tableau-data-extract\/\"><strong>Let&#8217;s watch Tableau Data Extract \u2013 How to do Data Extraction in Tableau<\/strong><\/a><\/p>\n<h4>d. IIF\u00a0Statment<\/h4>\n<p>IIF(test, then, else, [unknown])<\/p>\n<p>The IIF statement is just like the IF operate on top of. It primarily creates a shorthand operate for AN IF-THEN-ELSE statement with the additional advantage of being to outline a price with the ultimate argument if the check yields AN unknown result. Remember, a bit like the IF operate, the check should be mathematician by knowledge kind or lead to a mathematician worth as a results of the check.<\/p>\n<p>Let\u2019s take a glance at AN example:<\/p>\n<div id=\"attachment_10322\" style=\"width: 482px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical5.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10322\" class=\"wp-image-10322 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical5.jpg\" alt=\"Tableau IFF Statement - Logical Functions\" width=\"472\" height=\"47\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical5.jpg 472w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical5-150x15.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical5-300x30.jpg 300w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/a><p id=\"caption-attachment-10322\" class=\"wp-caption-text\">Tableau IFF Statement &#8211; Logical Functions<\/p><\/div>\n<p>If the sphere take advantage of modification is a smaller amount than five-hitter then my formula on top of can come back a price of Poor, otherwise it&#8217;ll come back sensible.<\/p>\n<h4>e. ISDATE\u00a0Statement<\/h4>\n<p>ISDATE(string)<\/p>\n<p>The ISDATE statement tests whether or not the string argument are often born-again to a legitimate date (TRUE) or if it cannot (FALSE). Here\u2019s AN example:<\/p>\n<div id=\"attachment_10323\" style=\"width: 237px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical6_1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10323\" class=\"wp-image-10323 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical6_1.jpg\" alt=\"ISDATE Statement - Logical Functions\" width=\"227\" height=\"48\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical6_1.jpg 227w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical6_1-150x32.jpg 150w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><p id=\"caption-attachment-10323\" class=\"wp-caption-text\">ISDATE Statement &#8211; Logical Functions<\/p><\/div>\n<p>The on top of a formula is approved by Tableau as a result of the sphere that we have a tendency to used is so a string knowledge kind, however, each result can clearly be FALSE. you would possibly use this logical functions. If your date is formatted in an exceeding vogue you would possibly not acknowledge, like ISO 8601. Here\u2019s AN example:<\/p>\n<div id=\"attachment_10324\" style=\"width: 301px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical7_0.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10324\" class=\"wp-image-10324 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical7_0.jpg\" alt=\"ISDATE Logical Functions\" width=\"291\" height=\"52\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical7_0.jpg 291w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical7_0-150x27.jpg 150w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><p id=\"caption-attachment-10324\" class=\"wp-caption-text\">ISDATE Logical Functions<\/p><\/div>\n<p>The on top of worth represents Sept one, 2014 and so may be a valid worth for a date.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/tableau-save-reordering-delete-worksheet\/\"><strong>Learn Tableau Save, Reorder and Delete Worksheet<\/strong><\/a><\/p>\n<h4>f. ISNULL\u00a0Statement<\/h4>\n<p>ISNULL(expression)<\/p>\n<p>Another straightforward statement, ISNULL, merely tests whether or not AN expression is null (TRUE) or not (FALSE).<\/p>\n<div id=\"attachment_10325\" style=\"width: 239px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical8.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10325\" class=\"wp-image-10325 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical8.jpg\" alt=\"ISNULL Statement - Logical Functions\" width=\"229\" height=\"53\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical8.jpg 229w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical8-150x35.jpg 150w\" sizes=\"auto, (max-width: 229px) 100vw, 229px\" \/><\/a><p id=\"caption-attachment-10325\" class=\"wp-caption-text\">ISNULL Statement &#8211; Logical Functions<\/p><\/div>\n<p>If you wish to filter null values from your image, you&#8217;ll be able to filter null values with the Filter card.<\/p>\n<h4>g. ZN Statement<\/h4>\n<p>ZN(expression)<\/p>\n<p>The last logical Functions are that the atomic number 30 operate. It\u2019s a variation on the ISNULL and IFNULL operate. Atomic number 30 tests to ascertain if a operate is null, and if it&#8217;s, it&#8217;ll come back a price of zero.<\/p>\n<div id=\"attachment_10326\" style=\"width: 323px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical9_0.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10326\" class=\"wp-image-10326 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical9_0.jpg\" alt=\"ZN Statement - Logical Functions\" width=\"313\" height=\"51\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical9_0.jpg 313w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical9_0-150x24.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical9_0-300x49.jpg 300w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/a><p id=\"caption-attachment-10326\" class=\"wp-caption-text\">ZN Statement &#8211; Logical Functions<\/p><\/div>\n<p>The first time you see a listing of logical functions, there\u2019s the inevitable hesitation on what all of this suggests. Currently that we\u2019ve suffered all, hopefully, you\u2019ll notice them helpful in investing your knowledge and your image even over before. If you wish to leap in and learn a lot of regarding once to use these functions, here&#8217;s a good post.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/tableau-highlight-table\/\"><strong>Let&#8217;s Discuss Tableau\u00a0Highlight Table &#8211; Steps to Build Highlight Table<\/strong><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>In this tutorial, we studied the different logical functions: CASE Statement, IF Statement, IFNULL Statement, IIF Statement, ISDATE Statement, ISNULL Statement, ZN Statement in a tableau with examples, and how we can use Logical statements in tableau to perform various operations.<\/p>\n<p>Share your feedback or queries in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tableau tutorial, we are going to study about Tableau Logical functions and different logic statements with examples that we can perform in Tableau. So, let us start tableau Logical Functions. Tableau Logical&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":10317,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[2313,6452,6460,6461,7318,7325,8379,8381,14343,14344,16354],"class_list":["post-10307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tableau","tag-case-statement","tag-if-statement","tag-ifnull-statement","tag-iif-statment","tag-isdate-statement","tag-isnull-statement","tag-logic-statements-in-tableau","tag-logical-functions-in-tableau","tag-tableau-logic-statements","tag-tableau-logical-functions","tag-zn-statement"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Logical Functions | Logic Statements in Tableau - DataFlair<\/title>\n<meta name=\"description\" content=\"Logical Functions in Tableau,CASE Statement,IF Statement, IFNULL Statement,IIF Statment,ISDATE Statement,ISNULL &amp; ZN Statement with examples\" \/>\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-logical-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logical Functions | Logic Statements in Tableau - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Logical Functions in Tableau,CASE Statement,IF Statement, IFNULL Statement,IIF Statment,ISDATE Statement,ISNULL &amp; ZN Statement with examples\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/tableau-logical-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-08T12:52:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-01T10:32:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical-Functionsl-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=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logical Functions | Logic Statements in Tableau - DataFlair","description":"Logical Functions in Tableau,CASE Statement,IF Statement, IFNULL Statement,IIF Statment,ISDATE Statement,ISNULL & ZN Statement with examples","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-logical-functions\/","og_locale":"en_US","og_type":"article","og_title":"Logical Functions | Logic Statements in Tableau - DataFlair","og_description":"Logical Functions in Tableau,CASE Statement,IF Statement, IFNULL Statement,IIF Statment,ISDATE Statement,ISNULL & ZN Statement with examples","og_url":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-08T12:52:07+00:00","article_modified_time":"2025-03-01T10:32:45+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical-Functionsl-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":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Logical Functions | Logic Statements in Tableau","datePublished":"2018-03-08T12:52:07+00:00","dateModified":"2025-03-01T10:32:45+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/"},"wordCount":1001,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical-Functionsl-in-tableau-01.jpg","keywords":["CASE Statement","IF Statement","IFNULL Statement","IIF Statment","ISDATE Statement","ISNULL Statement","Logic Statements in Tableau","Logical Functions in tableau","tableau Logic Statements","Tableau Logical Functions","ZN Statement"],"articleSection":["Tableau Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/","url":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/","name":"Logical Functions | Logic Statements in Tableau - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical-Functionsl-in-tableau-01.jpg","datePublished":"2018-03-08T12:52:07+00:00","dateModified":"2025-03-01T10:32:45+00:00","description":"Logical Functions in Tableau,CASE Statement,IF Statement, IFNULL Statement,IIF Statment,ISDATE Statement,ISNULL & ZN Statement with examples","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-functions\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical-Functionsl-in-tableau-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Logical-Functionsl-in-tableau-01.jpg","width":1200,"height":628,"caption":"Tableau Logical Functions | Logical statements"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/tableau-logical-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":"Logical Functions | Logic Statements 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\/10307","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=10307"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/10307\/revisions"}],"predecessor-version":[{"id":144376,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/10307\/revisions\/144376"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/10317"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=10307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=10307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=10307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}