Calculations in Tableau: A Road to Tableau Desktop Specialist Certification
Last Updated on May 16, 2022 by Editorial Team
Author(s): Daksh Trehan
Originally published on Towards AI the World’s Leading AI and Technology News and Media Company. If you are building an AI-related product or service, we invite you to consider becoming an AI sponsor. At Towards AI, we help scale AI and technology startups. Let us help you unleash your technology to the masses.
Tableau, Data Analytics, Business Intelligence, DataΒ Science
Chapter 11: A comprehensive guide on Calculations in Tableau with free UdemyΒ Dumps.
Welcome to the eleventh chapter, In this piece, we are going to learn about Calculations inΒ Tableau.
If you want to navigate through other chapters, visit: Tableau: What it is? Why it is the best?; A road to Tableau Desktop Specialist Certification.
If you want to directly go on Tableau Desktop Specialist notes, access them here β https://dakshtrehan.notion.site/Tableau-Notes-c13fceda97b94bda940edbf6751cf30
Use the link to get access to free Tableau certification dumps (Valid till 20 MayΒ 2022):
Table ofΒ Content
- Why use Calculation?
- Types of Calculations
- Editing & Removing a Calculation
- Sample Certification Questions from thisΒ Topic
Why use Calculations?
Calculations are used when we want to add custom fields that are derived from generic fields in our dataset. In simple words, Calculations are used when we want our data to answer some indirect questions.
Consider our database contains two rows: Name & Age. We can get our data to answer some indirect questions like if the person is above 18, mention βEligible to voteβ. This is how calculations work, theyβre made to answer some indirect questions.
When we create a new calculated field, we are creating a new field in our dataset. The type of calculated field depends upon the type of fields used in our calculations i.e. if we are creating a calculated field on dimensions, the new field would represent a dimension and the same goes for aΒ measure.
The dimensions that define how to group calculations are called partitioning fields.
The dimensions upon which the table calculation is performed are called addressing fields.
Some of the scenarios where Calculations might be helpfulΒ are:
- Converting data types ofΒ fields.
- Categorizing data.
- Filter Results.
- Aggregate Data.
- Calculating Ratios.
- Creating new data for visualization.
A calculation, also known as a formula, includes some or all of these components:
- Fields
- Functions
- Operators
- Parameters
- Comments
Creating a Calculated Field
To create a calculated field, go to the data pane and click on the drop-down and choose βCreate Calculated Fieldβ.
As per the data type used, the calculation will be classified either as a dimension orΒ measure.
Types of Calculations
There are three types of calculations one can use inΒ Tableau:
Basic Calculations
A basic calculation allows users to transform data either on the data source level of detail or visualization level ofΒ detail.
e.g. Splitting the strings(Data source level of detail), Aggregating columns(visualization level ofΒ detail)
Level of Detail(LOD) Calculations
LOD calculations work on the same principle as Basic Calculation i.e. on data source level of detail or visualization level of detail but are moreΒ precise.
There are three types of LOD Calculations:
- INCLUDE(more granularΒ level)
- EXCLUDE(less granularΒ level)
- FIXED(independent level)
LOD Calculations arenβt part of Tableau Desktop Specialist Certification so we arenβt gonna dive deep intoΒ it.
Table Calculations
A table calculation is only valid for fields in visualization. They donβt consider any other field that is filtered out in visualization.
These calculations could help create ranks, show running totals, percent of total, percentile, moving average,Β etc.
There are two ways to create a Table Calculation:
From Analysis
From Column/Row Shelf
Add some dimensions and measures on rows and column shelves. Right-click on the measure and choose βQuick Table Calculationβ or βAdd Table Calculationβ.
Total table calculations supported by TableauΒ are:
The scope of a table calculation couldΒ be:
Table(Across)
Table(Down)
Table(Across thenΒ Down)
Table(Down thenΒ Across)
Pane(Down)
Pane(Across thenΒ Down)
Pane(Down thenΒ Across)
Cell
Editing & Removing a Table Calculation
To edit a Calculation, simply right-click and chooseΒ βEditβ.
To remove a calculation, right click on the measure in the view(on which calculation is applied) and choose βClear Table Calculationβ.
Sample Certification Questions from thisΒ Topic
Which function can return absolute value of a givenΒ number?
a. Floor
b. Ceil
c. Round
d.Β Abs
Solution: Abs
Which is not a valid Table Calculation?
a. Difference From
b. Rank
c. Percentile
d. Difference ofΒ Total
Solution: Difference ofΒ Total
The average function treat null values as zeros?
a. True
b.Β False
Solution: False
Totals can be done either through? [Choose 2]
a. Analytics Pane
b. Worksheet Menu
c. Analysis Menu
d. Right clicking in theΒ view.
Solution: Analytics Pane, AnalysisΒ Menu
Percentile is available both in aggregation and calculation?
a. True
b.Β False
Solution: True
Use the link to get access to free Tableau certification dumps (Valid till 20 MayΒ 2022):
References:
[1] Tableau Help | TableauΒ Software
[2] PersonalΒ Notes
[3]Tableau Desktop Specialist Exam (New Patternβββ2021)βββApisero
Thanks forΒ Reading!
Feel free to give claps so I know how helpful this post was for you, and share it on your social networks, this would be very helpful forΒ me.
If you like this article and want to learn more about Machine Learning, Data Science, Python, BI. Please consider subscribing to my newsletter:
Find me on the Web: www.dakshtrehan.com
Connect with me at LinkedIn: www.linkedin.com/in/dakshtrehan
Read my Tech blogs: www.dakshtrehan.medium.com
Connect with me at Instagram: www.instagram.com/_daksh_trehan_
Want to learnΒ more?
How is YouTube using AI to recommend videos?
Detecting COVID-19 Using Deep Learning
The Inescapable AI Algorithm: TikTok
GPT-3 Explained to a 5-year-old.
Tinder+AI: A perfect Matchmaking?
An insiderβs guide to Cartoonization using Machine Learning
How Google made βHum to Search?β
One-line Magical code to perform EDA!
Give me 5-minutes, Iβll give you a DeepFake!
Cheers
Calculations in Tableau: A Road to Tableau Desktop Specialist Certification was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.
Join thousands of data leaders on the AI newsletter. Itβs free, we donβt spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI