×

Tableau String Functions

Tableau Calculation string functions with Examples

Tableau has many inbuilt string functions, which allow you to manipulate string data. They are used to for comparing, concatenating and for replacing few characters from a string, etc. Create Calculated Field
  1. In the Tableau Desktop, connect to the Excel file named Facebook Data which is saved in the data source.            tableau calculation string functions with examples 1
  2. Navigate to the worksheet pane and click on Analysis >Create Calculated Field as shown below.
tableau string functions with examples 2
  1. You will notice that a new dialogue box has appeared. Click on the icon present on the rightmost side of the box.
tableau string functions with examples 3
  1. You can see a tab linked with the previous one which lists all the functions that are available in Tableau.
tableau string functions with examples 4
  1. Further, you can change the dropdown value and choose only the functions that are related to Strings.
tableau string functions with examples 5
  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.
tableau string functions with examples 6 Create the Formula For instance, if you want to find out the sales in the direction, which has occurred particularly in “west”. For this, we will use the CONTAINS string function and will create the formula as shown in the following screenshot. Also, change the name to Direction_west. And click on OK. tableau string functions with examples 7 In the Data pane, under Measures, you will notice a field has been created named Direction_West. tableau string functions with examples 8

Applying the Calculated Field

From the Data pane, under Dimensions, drag Month to the Rows shelf and from Measures drag Sales to the Columns shelf. It produces a bar chart showing the number of sales held for the different regions. tableau string functions with examples 9 The above-calculated field can be applied in the view by dragging the Direction_West field to the Filters shelf. As soon as you drag it, a pop window will open as displayed in the following screenshot. tableau string functions with examples 10 Select the ‘True’ option and click on OK. Tableau will create the bar charts for the sales that have occurred only in West direction. The following screenshot shows the Sales values.   tableau string functions with examples 11

Related Topics

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 Tutorial

Introduction to Tableau: Intellectual, strategic, smart and real-time decision making is a must for the development of any organization. Previous years, all those decisions made by revising, analyzing documented reports...

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

Tableau Visualization

Data Visualization Using Tableau In this chapter, we will learn about visualization. We will come across and click the ‘Sheet’ which is where you start to build our visualization. Let’s take a look...

5 minutes read.

Tableau Bar Chart

How to Create Tableau Bar Chart? In Tableau, different kinds of bar charts can be produced by using dimensions and measures. A bar chart represents your data in rectangular bars with the...

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 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 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 Bump Chart Tutorial

How to Create Tableau Bump Chart? A Bump Chart shows a comparison between two dimensions using a measure of your choice. It is a line chart which is used when we...

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

Components of Tableau Server

Core Components of Tableau Server Tableau Server's work is directed primarily with the following four server processes: Application Server VizOL Server Data Server Gateway Application Server: It controls hold browsing and various...

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

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

Learn Tableau Data Terminology Tableau Tool drives a lot of visualizations. It is one of the dominant components for Data Analysis. It has many exclusive terms and descriptions. One needs to get...

4 minutes read.