SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
Swipe
Tableau - Functions
Tableau
Any data analysis involves a lot of calculations.
In Tableau, the calculation editor is used to apply
calculations to the fields being analyzed.
Tableau has a number of inbuilt functions which
help in creating expressions for complex
calculations.
Following are the description of different
categories of functions.
Tableau - Functions
Number Functions
String Functions
Date Functions
Logical Functions
Aggregate Functions
Types of Functions
These are the functions used for numeric
calculations. They only take numbers as inputs.
Following are some examples of important
number functions.
Number Functions
Function Description Example
CEILING
(number)
Rounds a number to
the nearest integer of
equal or greater
value.
CEILING(2.145) = 3
POWER
(number,
power)
Raises the number to
the specified power.
POWER(5,3) = 125
ROUND
(number,
[decimals])
Rounds the numbers
to a specified number
of digits.
ROUND(3.14152,2) =
3.14
String Functions are used for string manipulation.
Following are some important string functions
with examples
String Functions
Function Description Example
LEN (string) Returns the
length of the
string.
LEN("Tableau") = 7
LTRIM (string) Returns the
string with any
leading spaces
removed.
LTRIM(" Tableau ") =
"Tableau"
UPPER (string) Returns string,
with all
characters
uppercase.
UPPER("Tableau") =
"TABLEAU"
Tableau has a variety of date functions to carry
out calculations involving dates.
All the date functions use the date_part which is a
string indicating the part of the date such as -
month, day, or year.
Following table lists some examples of important
date functions.
Date Functions
Function Description Example
DATEADD
(date_part,
increment,
date)
Returns an
increment added to
the date. The type of
increment is
specified in
date_part.
DATEADD ('month',
3, #2004-04-15#) =
2004-0715 12:00:00
AM
DATENAME
(date_part,
date,
[start_of_wee
k])
Returns date_part of
date as a string. The
start_of_week
parameter is
optional.
DATENAME('month',
#200404-15#) =
"April"
DAY (date) Returns the day of
the given date as an
integer.
DAY(#2004-04-12#) =
12
NOW( ) Returns the current
date and time.
NOW( ) = 2004-04-15
1:08:21 PM
These functions evaluate some single value or the
result of an expression and produce a boolean
output.
Logical Functions
Function Description Example
IFNULL
(expression1,
expression2)
The IFNULL function
returns the first
expression if the
result is not null, and
returns the second
expression if it is
null.
IFNULL([Sales], 0) =
[Sales]
Function Description Example
ISDATE
(string)
The ISDATE function
returns TRUE if the
string argument can
be converted to a
date, and FALSE if it
cannot.
ISDATE("11/05/98")
= TRUE
ISDATE("14/05/98")
= FALSE
MIN(expressi
on)
The MIN function
returns the
minimum of an
expression across all
records or the
minimum of two
expressions for each
record.
AVG(expression)
Returns the average of all the values in the
expression. AVG can be used with numeric
fields only. Null values are ignored.
COUNT (expression)
Returns the number of items in a group. Null
values are not counted.
MEDIAN (expression)
Returns the median of an expression across all
records. Median can only be used with numeric
fields. Null values are ignored.
STDEV (expression)
Returns the statistical standard deviation of all
values in the given expression based on a
sample of the population.
Aggregate Functions
Tableau - Bar Chart
Tableau - Line Chart
Tableau - Pie Chart
Stay Tuned with
Topics for next Post

Contenu connexe

Tendances

Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...
Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...
Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...
Simplilearn
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functions
Vikas Gupta
 
Tableau presentation
Tableau presentationTableau presentation
Tableau presentation
kt166212
 

Tendances (20)

Tableau Presentation
Tableau PresentationTableau Presentation
Tableau Presentation
 
Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...
Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...
Tableau Interview Questions & Answers | Tableau Interview Questions | Tableau...
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functions
 
Learning Tableau - Data, Graphs, Filters, Dashboards and Advanced features
Learning Tableau -  Data, Graphs, Filters, Dashboards and Advanced featuresLearning Tableau -  Data, Graphs, Filters, Dashboards and Advanced features
Learning Tableau - Data, Graphs, Filters, Dashboards and Advanced features
 
Data Visualisation & Analytics with Tableau (Beginner) - by Maria Koumandraki
Data Visualisation & Analytics with Tableau (Beginner) - by Maria KoumandrakiData Visualisation & Analytics with Tableau (Beginner) - by Maria Koumandraki
Data Visualisation & Analytics with Tableau (Beginner) - by Maria Koumandraki
 
Data Blending in Tableau | Edureka
Data Blending in Tableau | EdurekaData Blending in Tableau | Edureka
Data Blending in Tableau | Edureka
 
My tableau
My tableauMy tableau
My tableau
 
Tableau And Data Visualization - Get Started
Tableau And Data Visualization - Get StartedTableau And Data Visualization - Get Started
Tableau And Data Visualization - Get Started
 
What are Parameters in Tableau | Tableau Tutorial | Edureka
What are Parameters in Tableau | Tableau Tutorial | EdurekaWhat are Parameters in Tableau | Tableau Tutorial | Edureka
What are Parameters in Tableau | Tableau Tutorial | Edureka
 
Tableau PPT.ppt
Tableau PPT.pptTableau PPT.ppt
Tableau PPT.ppt
 
Getting started with Tableau
Getting started with TableauGetting started with Tableau
Getting started with Tableau
 
The Importance of Data Visualization
The Importance of Data VisualizationThe Importance of Data Visualization
The Importance of Data Visualization
 
Level of-detail-expressions
Level of-detail-expressionsLevel of-detail-expressions
Level of-detail-expressions
 
Tableau LOD Expressions | Edureka
Tableau LOD Expressions | EdurekaTableau LOD Expressions | Edureka
Tableau LOD Expressions | Edureka
 
Data Visualization Trends - Next Steps for Tableau
Data Visualization Trends - Next Steps for TableauData Visualization Trends - Next Steps for Tableau
Data Visualization Trends - Next Steps for Tableau
 
Tableau presentation
Tableau presentationTableau presentation
Tableau presentation
 
Tableau
TableauTableau
Tableau
 
Sql joins
Sql joinsSql joins
Sql joins
 
SQL Joins With Examples | Edureka
SQL Joins With Examples | EdurekaSQL Joins With Examples | Edureka
SQL Joins With Examples | Edureka
 
Introduction to Tableau
Introduction to Tableau Introduction to Tableau
Introduction to Tableau
 

Similaire à Tableau functions

Oracle sql functions
Oracle sql functionsOracle sql functions
Oracle sql functions
Vivek Singh
 
lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222
227567
 
MIS 226: Chapter 2
MIS 226: Chapter 2MIS 226: Chapter 2
MIS 226: Chapter 2
macrob14
 
Intro to tsql unit 10
Intro to tsql   unit 10Intro to tsql   unit 10
Intro to tsql unit 10
Syed Asrarali
 

Similaire à Tableau functions (20)

Oracle sql functions
Oracle sql functionsOracle sql functions
Oracle sql functions
 
Tableau operators
Tableau   operatorsTableau   operators
Tableau operators
 
Unit 3 - Function & Grouping,Joins and Set Operations in ORACLE
Unit 3 - Function & Grouping,Joins and Set Operations in ORACLEUnit 3 - Function & Grouping,Joins and Set Operations in ORACLE
Unit 3 - Function & Grouping,Joins and Set Operations in ORACLE
 
Single row functions
Single row functionsSingle row functions
Single row functions
 
Excel Overview.pptx
Excel Overview.pptxExcel Overview.pptx
Excel Overview.pptx
 
Les03 Single Row Function
Les03 Single Row FunctionLes03 Single Row Function
Les03 Single Row Function
 
lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222lab2sql222222222222222222222222222222222
lab2sql222222222222222222222222222222222
 
MIS 226: Chapter 2
MIS 226: Chapter 2MIS 226: Chapter 2
MIS 226: Chapter 2
 
Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)
 
Ms excel commands
Ms excel commandsMs excel commands
Ms excel commands
 
12th.pptx
12th.pptx12th.pptx
12th.pptx
 
Les03
Les03Les03
Les03
 
Les03
Les03Les03
Les03
 
Function and types
Function  and typesFunction  and types
Function and types
 
Les03 Single Row Functions in Oracle and SQL.ppt
Les03 Single Row Functions in Oracle and SQL.pptLes03 Single Row Functions in Oracle and SQL.ppt
Les03 Single Row Functions in Oracle and SQL.ppt
 
Oracle sql ppt2
Oracle sql ppt2Oracle sql ppt2
Oracle sql ppt2
 
2 sql - single-row functions
2   sql - single-row functions2   sql - single-row functions
2 sql - single-row functions
 
Chapter 16-spreadsheet1 questions and answer
Chapter 16-spreadsheet1  questions and answerChapter 16-spreadsheet1  questions and answer
Chapter 16-spreadsheet1 questions and answer
 
Python High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptPython High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.ppt
 
Intro to tsql unit 10
Intro to tsql   unit 10Intro to tsql   unit 10
Intro to tsql unit 10
 

Plus de Learnbay Datascience

Plus de Learnbay Datascience (20)

Top data science projects
Top data science projectsTop data science projects
Top data science projects
 
Python my SQL - create table
Python my SQL - create tablePython my SQL - create table
Python my SQL - create table
 
Python my SQL - create database
Python my SQL - create databasePython my SQL - create database
Python my SQL - create database
 
Python my sql database connection
Python my sql   database connectionPython my sql   database connection
Python my sql database connection
 
Python - mySOL
Python - mySOLPython - mySOL
Python - mySOL
 
AI - Issues and Terminology
AI - Issues and TerminologyAI - Issues and Terminology
AI - Issues and Terminology
 
AI - Fuzzy Logic Systems
AI - Fuzzy Logic SystemsAI - Fuzzy Logic Systems
AI - Fuzzy Logic Systems
 
AI - working of an ns
AI - working of an nsAI - working of an ns
AI - working of an ns
 
Artificial Intelligence- Neural Networks
Artificial Intelligence- Neural NetworksArtificial Intelligence- Neural Networks
Artificial Intelligence- Neural Networks
 
AI - Robotics
AI - RoboticsAI - Robotics
AI - Robotics
 
Applications of expert system
Applications of expert systemApplications of expert system
Applications of expert system
 
Components of expert systems
Components of expert systemsComponents of expert systems
Components of expert systems
 
Artificial intelligence - expert systems
 Artificial intelligence - expert systems Artificial intelligence - expert systems
Artificial intelligence - expert systems
 
AI - natural language processing
AI - natural language processingAI - natural language processing
AI - natural language processing
 
Ai popular search algorithms
Ai   popular search algorithmsAi   popular search algorithms
Ai popular search algorithms
 
AI - Agents & Environments
AI - Agents & EnvironmentsAI - Agents & Environments
AI - Agents & Environments
 
Artificial intelligence - research areas
Artificial intelligence - research areasArtificial intelligence - research areas
Artificial intelligence - research areas
 
Artificial intelligence composed
Artificial intelligence composedArtificial intelligence composed
Artificial intelligence composed
 
Artificial intelligence intelligent systems
Artificial intelligence   intelligent systemsArtificial intelligence   intelligent systems
Artificial intelligence intelligent systems
 
Applications of ai
Applications of aiApplications of ai
Applications of ai
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Tableau functions

  • 2. Any data analysis involves a lot of calculations. In Tableau, the calculation editor is used to apply calculations to the fields being analyzed. Tableau has a number of inbuilt functions which help in creating expressions for complex calculations. Following are the description of different categories of functions. Tableau - Functions
  • 3. Number Functions String Functions Date Functions Logical Functions Aggregate Functions Types of Functions
  • 4. These are the functions used for numeric calculations. They only take numbers as inputs. Following are some examples of important number functions. Number Functions Function Description Example CEILING (number) Rounds a number to the nearest integer of equal or greater value. CEILING(2.145) = 3 POWER (number, power) Raises the number to the specified power. POWER(5,3) = 125 ROUND (number, [decimals]) Rounds the numbers to a specified number of digits. ROUND(3.14152,2) = 3.14
  • 5. String Functions are used for string manipulation. Following are some important string functions with examples String Functions Function Description Example LEN (string) Returns the length of the string. LEN("Tableau") = 7 LTRIM (string) Returns the string with any leading spaces removed. LTRIM(" Tableau ") = "Tableau" UPPER (string) Returns string, with all characters uppercase. UPPER("Tableau") = "TABLEAU"
  • 6. Tableau has a variety of date functions to carry out calculations involving dates. All the date functions use the date_part which is a string indicating the part of the date such as - month, day, or year. Following table lists some examples of important date functions. Date Functions
  • 7. Function Description Example DATEADD (date_part, increment, date) Returns an increment added to the date. The type of increment is specified in date_part. DATEADD ('month', 3, #2004-04-15#) = 2004-0715 12:00:00 AM DATENAME (date_part, date, [start_of_wee k]) Returns date_part of date as a string. The start_of_week parameter is optional. DATENAME('month', #200404-15#) = "April" DAY (date) Returns the day of the given date as an integer. DAY(#2004-04-12#) = 12 NOW( ) Returns the current date and time. NOW( ) = 2004-04-15 1:08:21 PM
  • 8. These functions evaluate some single value or the result of an expression and produce a boolean output. Logical Functions Function Description Example IFNULL (expression1, expression2) The IFNULL function returns the first expression if the result is not null, and returns the second expression if it is null. IFNULL([Sales], 0) = [Sales]
  • 9. Function Description Example ISDATE (string) The ISDATE function returns TRUE if the string argument can be converted to a date, and FALSE if it cannot. ISDATE("11/05/98") = TRUE ISDATE("14/05/98") = FALSE MIN(expressi on) The MIN function returns the minimum of an expression across all records or the minimum of two expressions for each record.
  • 10. AVG(expression) Returns the average of all the values in the expression. AVG can be used with numeric fields only. Null values are ignored. COUNT (expression) Returns the number of items in a group. Null values are not counted. MEDIAN (expression) Returns the median of an expression across all records. Median can only be used with numeric fields. Null values are ignored. STDEV (expression) Returns the statistical standard deviation of all values in the given expression based on a sample of the population. Aggregate Functions
  • 11. Tableau - Bar Chart Tableau - Line Chart Tableau - Pie Chart Stay Tuned with Topics for next Post