×

Tableau Date Functions

Tableau Date Functions with Examples

Dates are crucial fields which are widely used in data analysis. Hence, Tableau provides a large number of inbuilt date functions that allows you to manipulate dates in your data source. You can simply add or subtract days from a date or can create complex expressions involving dates. You can also create new date values with a specified date function, by using the DATETRUNC function. Create Calculated Field
  1. In the Tableau Desktop, connect to the Excel file named Facebook Data which is saved in the data source.             Tableau Date Functions
  2. Navigate to the worksheet pane and click on Analysis > Create Calculated Field as shown below.
Tableau Date Functions
  1. You will notice that a new dialogue box has appeared. Click on the icon present on the rightmost side of the box.
Tableau Date Functions
  1. You can see a tab linked with the previous one which lists all the functions that are available in Tableau.
Tableau Date Functions
  1. Further, you can change the dropdown value and choose only the functions that are related to Date.
Tableau Date Functions
  1. On the rightmost side of the pane, you will notice that Tableau is briefing us with the formula and small explanation for the selected functions.

Create a Formula

Now, find out the sales volume along with the addition to the date of sales in months from 12st March 2018. For this, we will use the ‘DATEADD’ Date function and will create the formula as shown in the following screenshot. Also, change the name to DateAdd. And click on OK. Tableau Date Functions In the Data pane, under Dimensions, you will notice a field has been created named Date_Add.

Applying the Calculated Field

The above-calculated field can be applied in the view by dragging it to the Rows and drag the Sales field to the Columns shelf. Also, drag the Date with months. The following screenshot shows the Sales values. Tableau Date Functions

Related Topics

Tableau Numeric Calculations

Introduction to Tableau Numeric Calculations In Tableau, the Numeric calculations are done by using an extensive range of inbuilt functions available in the formula editor. Numeric calculations allow you to perform...

2 minutes read.

Tableau Pie Chart

A pie chart is a type of graph in which a circle is divided into sectors to represent the data with different sizes and colors. In Tableau, the slices of...

1 minute read.

Tableau Date Functions

Tableau Date Functions with Examples Dates are crucial fields which are widely used in data analysis. Hence, Tableau provides a large number of inbuilt date functions that allows you to manipulate...

2 minutes read.

Tableau Histogram Chart

Histogram chart in Tableau A histogram is a chart that represents the accurate distribution of numerical data. A histogram represents the actual frequencies of values of a variable bucketed into ranges....

2 minutes read.

Tableau TreeMap

The treemap is a kind of chart that displays the data in nested rectangles and provides simple data visualization. In a treemap, the values of the dimension describe the structure...

2 minutes read.

Tableau Crosstab Chart

How to Create Tableau Crosstab Chart? A crosstab chart also knows as Text table. It is a type of chart which shows the data in a textual form. One or more...

1 minute read.

Difference between Tableau and Excel

Why is Tableau used instead of Excel? Tableau is a fastest growing and powerful data visualization tool which is primarily used in the Business Intelligence Industry whereas Microsoft Excel is a...

2 minutes read.

Tableau Gantt Chart

How to create a Gantt Chart in Tableau A Gantt chart is a type of chart that shows the development and duration of the event or resource over a period of...

2 minutes read.

Tableau Scatter Plot

Tableau Scatter plot with Dimensions The scatter plot represents the data in which many points are scattered in the Cartesian plane according to the given figures. It is generated by plotting...

2 minutes read.

Tableau Dimensions and Measures

How to Use Tableau Dimensions and Measures? Tableau is very built on the premises of drag and drops so let’s developed a simple visualization and talk about what each of these...

3 minutes read.

Tableau Data Sources Excel

Tableau- Data Sources Tableau software connects to all types of popular data sources. It can link to text files, excel files, PDF files, etc. Tableau has the ability to connect to...

2 minutes read.

Tableau Products Comparison

Tableau Products Explained In this tutorial, you will have a look at an overview of the products offered by the tableau: Tableau Desktop So we have a tableau desktop, which is where...

1 minute read.

Tableau Box Plot

How to Create Tableau Box Plot? The box plot is the type of chart that shows the distribution of values along an axis. It is also known as a box-and-whisker plot....

2 minutes read.

Introduction to Tableau

 What is Business Intelligence? Companies use business intelligence technologies to collect, analyze and present data to create actionable information. Today’s businesses are always seeking insights about their customers, products, and services. So...

3 minutes read.

Tableau Bubble Chart

How to Create Tableau Bubble Chart? A bubble chart is a kind of chart that displays the three dimensions of data as a cluster of circles. It is considered as a...

2 minutes read.

Tableau Quick Filters

Tableau Filters help to have enough functionality to solve most of the common filtering needs. Quick filters are simply a filter that has been exposed in a view. But, it...

2 minutes read.

Tableau Server Architecture Components

Tableau Architecture Explanation Tableau provides a scalable solution for the delivery and creation of web, mobile and desktop analytics. Tableau Server is an analytics platform that is used to level up thousands...

2 minutes read.

Application of Tableau

Tableau is a powerful data visualization tool used in the Business Intelligence Industry. It is used for many online training modules and data sets relevant to business or marketing. Tableau...

2 minutes read.

Tableau Motion Chart

Motion charts are a type of chart that allows you to visualize in action displaying the changes of your data over time by indicating the movement of data points within...

2 minutes read.

Tableau Connectivity with Excel

Connect Excel to Tableau server Step by Step Let’s get started by connecting tableau to a data source:   Step: 1 Click on Microsoft Excel   Step: 2 Choose your excel file and open it...

1 minute read.