SlideShare a Scribd company logo
Let’s learn Tableau
Data Visualization Software
Version 2019.3.0
Made By: Kanika Nagpal
LinkedIn Id: https://www.linkedin.com/in/kanika-nagpal/
Calculated
FieldCalculations which are used to find certain
information that is not available in the data
Use of
Calculated
Fields
Calculated Field helps to create new
data from the data that already exists in
the data source.
When a calculated field is generated,
basically a new field (or column) is
created in the data source. The values
or members of this calculated field are
determined by the calculation that user
controls.
This new calculated field is saved to the
data source and can be used to create
more robust visualizations.
But don't worry, the original data
remains untouched.
Types of Calculated Field
Numerical
Field
Aggregate
Field
Logical
Field
String
Field
Date
Field
Calculated Fields in Tableau
Dataset : India_Life_Expectancy
Life expectancy is a statistical measure of the average time a person
is expected to live, based on the year of its birth, its current age, and
other demographic factors including gender.
The dataset available on Kaggle has been modified for this chapter.
List of columns used are as follows:-
 City Name
 State
 Last Election Date
 Death Rate
 Population Current
TIME TO CREATE
NUMERICAL
FIELD
Steps to create Numerical Field
● Click the drop down beside the ‘Dimensions’ section.
● Select ‘Create Calculated Field…’ and a dialogue box will
appear. Name it ‘Number of Deaths’ and write the formula:
([Death Rate]/100)*[Population Current] -> Apply -> Ok.
This will create a field under ‘Measures’ section which describes
the total number of deaths in every city.
● Create a Bar graph using ‘State’ and ‘Number of Deaths’.
Resulting graph has been put up on the next slide and is self
explanatory.
Calculated Fields in Tableau
DATE
FIELD
Steps to create Date Field
● Select the drop down beside ‘Dimensions’ section.
● Select ‘Create Calculated Field…’ and a dialogue box will appear.
Name it ‘Years from Last Election’ and write formula: DATEDIFF(
'year' , [Last Election Date] , Today()) -> Apply -> Ok.
This will create a field under ‘Measures’ section which describes
number of years that have passed since the last election was held in
that City .
● Create a Bar graph using ‘State’, ‘City’ and ‘Years from Last
Election’.
Resulting graph (excluding few States) has been put up on the next
slide for reference and is self explanatory.
Calculated Fields in Tableau
AGGREGATE
FIELD
Steps to create Aggregate Field
● Select the drop down beside ‘Dimensions’ section.
● Select ‘Create Calculated Field…’ and a dialogue box will
appear. Name it ‘Average Population’ and write formula:
AVG ([Population Current]) -> Apply -> Ok.
This will create a field under ‘Measures’ section which describes
the average population for every City.
● Create a Bar graph using ‘State’ and ‘Average Population’.
Resulting graph has been put up on the next slide for reference
and is self explanatory.
Calculated Fields in Tableau
STRING
FIELD
Steps to create String Field
There are two ways to create a String field in ‘Dimensions’ section.
One way is by Splitting an existing field and the other way is by
Combining any two fields.
Steps to create a String field by splitting :-
● Right click on ‘City Name’ in ‘Dimensions’ section.
● Select ‘Transform’ and then ‘Split’.
This will create two fields under ‘Dimensions’ section, one containing
the name of the city and the other its code.
● Rename the ‘City Name - Split 1’ as ‘City’ and ‘City Name - Split
2’ as ‘City Code’.
Steps to create String Field
Steps to create a String field by combining :-
● Select ‘State’ and ‘City Name’ using Ctrl key.
● Right click on either of the field. Select ‘Create’ and then
‘Combined Field’.
This will create a field under ‘Dimensions’ section which
combines the ‘State’ and ‘City Name’ using ‘, ’ as a separator for
each row in the dataset.
● Create a Bar graph using ‘City’, ‘City Code’, ‘City Name &
State (Combined)’ and ‘Population Current’.
Resulting graph (excluding few States) has been put up on the
next slide for reference and is self explanatory.
Calculated Fields in Tableau
LOGICAL
FIELD
Steps to create Logical Field
● Select the drop down beside ‘Dimensions’ section.
● Select ‘Create Calculated Field…’ and a dialogue box will appear.
Name it ‘Death Category’ and write formula:
IF [Death Rate] <= 10 then 'Low‘
ELSEIF [Death Rate] > 10 and [Death Rate] <= 15 then 'Mild'
ELSE 'High' END
● Click ‘Apply’ and then click ‘Ok’.
This will create a field under ‘Measures’ section which labels the each row
according to the above logic ‘Death Rate’.
● Create a Bar graph using ‘State’, ‘Death Rate’ and ‘Death Category’.
Resulting graph has been put up on the next slide for reference and is self
explanatory.
Calculated Fields in Tableau
Image Sources
https://www.free-powerpoint-templates-design.com/
https://www.liberaldictionary.com/wp-content/uploads/2018/11/numbers.jpg
https://www.pngarts.com/explore/130045
https://help.tableau.com/current/pro/desktop/en-
us/calculations_calculatedfields_create.htm
https://img.freepik.com/free-photo/dark-blue-glow-dust-particle-abstract-
background_35672-1414.jpg?size=626&ext=jpg
https://images.squarespace-
cdn.com/content/5835c88346c3c4a5dd582405/1499729757596-
EBQ0IH3085GD38IXVTLR/?format=1000w&content-type=image%2Fjpeg
https://image.freepik.com/free-vector/business-performance-analysis-with-
graphs_53876-59914.jpg
https://cdn4.vectorstock.com/i/1000x1000/42/98/cute-cartoon-kids-set-
children-girls-boys-vector-23984298.jpg
END

More Related Content

PPTX
Distributed operating system
PPTX
Round Robin Algorithm.pptx
PDF
AES-Advanced Encryption Standard
PPT
Leadership skills
PPTX
Java package
PPTX
Cloud Computing for college presenation project.
PPTX
Diabetes Mellitus
Distributed operating system
Round Robin Algorithm.pptx
AES-Advanced Encryption Standard
Leadership skills
Java package
Cloud Computing for college presenation project.
Diabetes Mellitus

What's hot (20)

PPT
Pivot Tables
PPTX
Sql Constraints
PPTX
introdution to SQL and SQL functions
PPT
Introduction to-sql
PPTX
Excel Pivot Tables
PPTX
Ppt on pivot table
PPTX
SQL - DML and DDL Commands
PPTX
Integrity Constraints
PPTX
SQL Functions
PPTX
Sets in Tableau
PPTX
Excel presentation data validation
PPTX
Null / Not Null value
PPTX
PPTX
Aggregate function
PPTX
Tableau groups vs sets
PPTX
Triggers
PPTX
SQL - Structured query language introduction
PPT
SQL Views
PPT
Database Connection
Pivot Tables
Sql Constraints
introdution to SQL and SQL functions
Introduction to-sql
Excel Pivot Tables
Ppt on pivot table
SQL - DML and DDL Commands
Integrity Constraints
SQL Functions
Sets in Tableau
Excel presentation data validation
Null / Not Null value
Aggregate function
Tableau groups vs sets
Triggers
SQL - Structured query language introduction
SQL Views
Database Connection
Ad

Similar to Calculated Fields in Tableau (20)

PPTX
Visualizing Data using Tableau
PPTX
Introduction to Tableau
PDF
Plan601 e session 1 demo
PPT
Hyperion analyzer 31 july
PPTX
Visualizing Time with tableau
DOCX
Extra Credit Projects Microsoft Office Applications Sof.docx
PDF
QGIS Tutorial 1
DOCX
PPTX
SuperStore Analysist.pptx
DOCX
The two-party systemCheck out this list 
 Thats the .docx
PDF
FOIAfest 2016 Session: Data crunchers, this session is for you
PPTX
What is my neighbourhood like: Data collecting
PPTX
What is my neighbourhood like
PPTX
Calculation contex in sap business objects
PPTX
First steps with SigmaPlotsustainable chemistr
PPTX
UNIT-I-TS&F.pptx
DOCX
Setting up the WCB Rate and Premium Calculator
PPTX
6 tableau visualization tips to inspire your creative eyes
PPTX
MS_Access_C_-_Calculated__Fields in IT.pptx
PPTX
How to make Gantt chart in Excel
Visualizing Data using Tableau
Introduction to Tableau
Plan601 e session 1 demo
Hyperion analyzer 31 july
Visualizing Time with tableau
Extra Credit Projects Microsoft Office Applications Sof.docx
QGIS Tutorial 1
SuperStore Analysist.pptx
The two-party systemCheck out this list 
 Thats the .docx
FOIAfest 2016 Session: Data crunchers, this session is for you
What is my neighbourhood like: Data collecting
What is my neighbourhood like
Calculation contex in sap business objects
First steps with SigmaPlotsustainable chemistr
UNIT-I-TS&F.pptx
Setting up the WCB Rate and Premium Calculator
6 tableau visualization tips to inspire your creative eyes
MS_Access_C_-_Calculated__Fields in IT.pptx
How to make Gantt chart in Excel
Ad

Recently uploaded (20)

PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
Introduction to machine learning and Linear Models
PDF
annual-report-2024-2025 original latest.
PDF
Lecture1 pattern recognition............
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PDF
Mega Projects Data Mega Projects Data
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Computer network topology notes for revision
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
ISS -ESG Data flows What is ESG and HowHow
Introduction to machine learning and Linear Models
annual-report-2024-2025 original latest.
Lecture1 pattern recognition............
climate analysis of Dhaka ,Banglades.pptx
Clinical guidelines as a resource for EBP(1).pdf
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
IB Computer Science - Internal Assessment.pptx
Mega Projects Data Mega Projects Data
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Database Infoormation System (DBIS).pptx
1_Introduction to advance data techniques.pptx
Computer network topology notes for revision
IBA_Chapter_11_Slides_Final_Accessible.pptx

Calculated Fields in Tableau