×

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 Opening Page

Let’s have a look at the content of the tableau opening page: Step: 1 On your left you have the different things and you can connect to it. This is more...

1 minute read.

Tableau Calculated Field

An Introduction to Calculated Fields in Tableau Calculated fields create new data field from the data that already exists in your data source. When you create a calculated field, you are...

2 minutes read.

Tableau Marks

Tableau Marks Tableau is an excellent tool to depict your data in the most attractive way. There is a particular part of the tableau workspace that’s specific to Mark’s called the...

3 minutes read.

Tableau Line Chart

In a line chart, measures and dimensions are taken along the two axes of the chart area. Line Chart is used to understand the moment of the data and analysis...

2 minutes read.

How to download and install tableau setup for free?

Tableau Environmental setup In this section, we will learn how to download and install tableau for free. After downloading tableau setup, the installation is a very easy process. The following steps and screenshots...

1 minute read.

Tableau Operator

Operator in Tableau An operator is referred to as a symbol that often tells the compiler to execute certain mathematical or logical operations. Tableau accepts the same operators which are used...

4 minutes 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 LOD Expressions

LOD Expressions LOD or Level of Detail expressions computes values at the data source and the visualization level instead of bringing all the data to the Tableau interface. However, LOD expressions...

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 Data Blending

Introduction to Tableau Data Blending Data Blending is a very advantageous feature in Tableau. Data blending is referred to as a technique where on a single worksheet, the data is blended...

3 minutes read.

Tableau file Extensions

Tableau data file Extensions The output of Tableau’s data analysis can be saved in different formats, which further can be distributed on different platforms. The various forms are reflected as different...

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 Filter card

Tableau add Filter Card to Dashboard Tableau provides a very significant feature of filtering of data for the ease of data analysis. Tableau allows the filtering of data of the fields,...

3 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 Filter Introduction

Filtering is an essential aspect of analyzing data. It is the process of eliminating values from a range of result set. Tableau provides a filtering feature to filter data from...

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 Waterfall Chart

How to Create Tableau Waterfall Chart? The waterfall chart is a type of chart that effectively displays how an initial value is incremented and decremented by a series of intermediate values,...

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 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.

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.