×

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

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

How to Create Tableau Bullet Chart? A bullet chart is a type of chart that is used to compare the value of one measure with another measure. It is a variation...

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

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

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

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

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

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.