How to change Data Type in Tableau

How to change Data Type in Tableau

2 mins read778 Views Comment
Vikram
Vikram Singh
Assistant Manager - Content
Updated on Sep 2, 2024 09:38 IST

Learn how to change data types in Tableau with this step-by-step tutorial. Quickly master this essential skill to ensure your data is accurate and ready for analysis. Click to start transforming your Tableau experience today!

How to Change Data Type in Tableau

Accurate data is the foundation of any effective analysis, and knowing how to change data types in Tableau is a key skill for any user. In this tutorial, you'll discover how to seamlessly adjust data types, ensuring your visualizations are both accurate and insightful. Whether you're dealing with numbers, dates, or text, this guide will walk you through the process, making your Tableau work smoother and more efficient. Dive in and start mastering the details that make your data shine!

Table of Content

Change Data Type in

Tableau supports 7 data types: String values, Date values, Date & Time values, Numeric values, Boolean values, Geographical values, Cluster or mixed values.

We can change the data type for a field on the Data Source page or the Data Pane.

Recommended online courses

Best-suited Tableau courses for you

Learn Tableau with these high-rated online courses

β‚Ή39.54 K
2 hours
– / –
45 hours
– / –
4 weeks
– / –
4 weeks
β‚Ή2.25 K
4 weeks
Free
12 hours
– / –
1 hours
β‚Ή19.89 K
16 hours
– / –
3 hours
β‚Ή19.7 K
6 months

Data Source Page

Tableau sometimes incorrectly interprets the data type of fields.

Example: Interpret the date as an integer

Steps to Change:

  • Click on the data type icon of the field
  • From the drop-down, choose the new data type

Here, the data type is a number, now we will change it into a string data type.

Now, the data type is changed to string.

Note: Change the data type from you create an extract, otherwise data may not be accurate.

Data Pane

If you want to change the data type without changing from the source, then you can easily modify it from the pane of the tableau.

Steps to change:

  • Click on the fields data type icon
  • Choose a new data type from the drop-down

Here, the data type of Name field is a string, now we will change it into the Boolean.

Here, the data type of the name field is changed to Boolean.

View

The third and last option to change the data type is through the view.

Steps to change:

  • Right-click on the field
  • Choose the drop down from the list

In the above image, the data type of Location is a string, now change it to Date and time.

Here, the data type of location is changed to Date & Time.

Conclusion

In this article, we discuss three methods of how to change the data type in Tableau step by step with an examples.

Hope this article will help you in your data analyst journey.

This article is a part of a complete tutorial of Tableau, focusing on Tableau certified data analysts and tableau desktop specialists. 

Through a series of articles, we will cover all the topics in-depth with examples.

Top Trending Articles:
Data Analyst Interview Questions | Data Science Interview Questions | Machine Learning Applications | Big Data vs Machine Learning | Data Scientist vs Data Analyst | How to Become a Data Analyst | Data Science vs. Big Data vs. Data Analytics | What is Data Science | What is a Data Scientist | What is Data Analyst

About the Author
author-image
Vikram Singh
Assistant Manager - Content

Vikram has a Postgraduate degree in Applied Mathematics, with a keen interest in Data Science and Machine Learning. He has experience of 2+ years in content creation in Mathematics, Statistics, Data Science, and Mac... Read Full Bio