Open In App

Create Calculated Field in Tableau

In this article we will learn how to create calculated field in tableau worksheet to do further operations. For this first look into these two terms:

Dataset used in the given examples is Dataset.



For this we have to follow some steps :

Open the Tableau tool and connect a dataset into it. Drag and drop the one sheet of the connected dataset. Click on sheet1 to open the tableau worksheet. On clicking Sheet1 you will get whole dataset attributes on the left side and a worksheet for work.



To create a calculated field you have to follow given instructions.

Example 1:

In this example, we create a calculated field with name Travelling Days form Order data and Ship date fields. Here, we use Datedifference method to subtract dates and calculated the number of days. The result is shown below:

Example 2:

In this example, we create a calculated field with name TAddress form City, State, Region and Postal Code fields. Here, we use String Concatenation method and convert the integer postal code into a string. The result is shown below :

Article Tags :