×

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

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

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

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.