添加链接
注册
登录
link之家
链接快照平台
输入网页链接,自动生成快照
标签化管理网页链接
相关文章推荐
腼腆的卡布奇诺
·
Data Types - Tableau
·
3 天前
·
行走的豆芽
·
javascript - ...
·
1 年前
·
从未表白的匕首
·
QTreeView使用总结17:改造QTre ...
·
1 年前
·
成熟的小熊猫
·
python ...
·
1 年前
·
强健的柚子
·
Nginx ...
·
1 年前
·
帅呆的帽子
·
nodejs利用readline提示输入内容 ...
·
1 年前
·
link之家
›
Data Types - Tableau
tableau
https://help.tableau.com/current/pro/desktop/en-us/datafields_typesandroles_datatypes.htm
腼腆的卡布奇诺
3 天前
</noscript><div id="app" class="wrapper"><header id="tableau-help-article-header" class="container--full-width quick-help-header"><div class="container--centered"><div class="header__mobile-menu quick-help-hidden"><menu-tree-toggle/></div><div class="header__logo quick-help-hidden"><a id="tableau-logo" href="https://www.tableau.com/en-us/"><img src="./Resources/tableau-logo.png" class="header__logo__img" alt="Tableau"/></a></div><div class="header__search"><search-header-help placeholder="Search"/></div></div></header><div class="container--navigation-top quick-help-hidden content-only-hidden"><div id="help-subheader" class="subheader print-hidden"><div class="container--centered"><h1 class="heading--subheader">Tableau Desktop and Web Authoring Help</h1></div></div><div class="container--top-links"><div class="container--centered container--breadcrumbs"><div><breadcrumb-links-help/></div></div><div id="help-container-menu-headings" class="container--menu-headings"><nav class="nav-medium-screen"><menu-heading-links-static-help menu-title="In this article" :disabled="false" :headings="pageHeadings"/></nav></div></div></div><div class="section--main container--full-width"><div class="container--centered"><nav class="nav-side nav-side--left" role="navigation"><menu-tree-help menu-title="Contents"/></nav><article role="main"><h2 class="topic--title" id="topic-title" tabindex="-1">Data Types</h2><div class="caption article__tags content-only-hidden quick-help-hidden"><span class="article__tags--applies-to">Applies to: Tableau Desktop</span><br/><span class="article__tags--role"> </span></div><div id="content-body"> <p>All fields in a data source have a data type. The data type reflects the kind of information stored in that field, for example integers (410), dates (1/23/2025) and strings ("Belgium"). The data type of a field is identified in the <b>Data</b> pane by one of the icons shown below.</p> </p><h2 is="heading-item" :level="2" id="data-type-icons-in-tableau">Data type icons in Tableau</h2> <p>You can change the data type for a field either on the <b>Data Source</b> page or in the <b>Data</b> pane. </p> <h2 is="heading-item" :level="2" id="change-the-data-type-for-a-field-in-the-data-source-page">Change the data type for a field in the Data Source page</h2> <p>Sometimes Tableau incorrectly interprets the data type of a field. For example, Tableau might interpret a field that contains dates as an integer data type, rather than a date data type. </p> <p>You can change the data type for a field that was part of the original data source (as opposed to a calculated field created in Tableau) on the <b>Data Source</b> page. </p> <p>Click the data type icon for the field (as shown in the table above).</p> <p>Choose a new data type from the drop-down list:</p> <p class="note"><b>Tip</b>: Be sure to change data types before you create an extract. Otherwise, your data may not be accurate. For example, if a floating-point field in the original data source is interpreted as an integer by Tableau, and you create your extract before you change the field's data type, the resulting floating-point field in Tableau will have some of its precision truncated. </p> <p>For information on changing data types on the <span class="uicontrol">Data Source</span> page, see <a href="environment_datasource_page.htm" class="MCXref xref">Data Source Page</a>.</p> <h2 is="heading-item" :level="2" id="change-the-data-type-for-a-field-in-the-data-pane">Change the data type for a field in the Data pane</h2> <p>To change the data type of a field in the <span class="uicontrol">Data</span> pane, click the icon to the left of the field name, and then choose a new data type from the drop-down list.</p> <h2 is="heading-item" :level="2" id="change-the-data-type-for-a-field-in-the-view">Change the data type for a field in the view</h2> <p>To change a field's data type in a view, right-click (control-click on a Mac) the field in the <span class="uicontrol">Data</span> pane, choose <span class="uicontrol">Change Data Type</span>, and then select the appropriate data type from the drop-down list.</p> <p class="note"><b>Note:</b> Sometimes the data in your database is more precise then Tableau can model. When you add these values to the view, a precision warning appears in the right corner of the status bar. See <a href="environment_workspace.htm#StatusBar" class="MCXref xref">Status Bar Information</a>.</p> <h2 class="sectiontitle" is="heading-item" :level="2" id="mixed-data-types-in-data-from-files">Mixed data types in data from files</h2> columns in a Microsoft Excel, Microsoft Access, or CSV (comma-separated value) file contain values that are all of the same data type (Booleans, dates, numbers, or text). When you connect to the file, Tableau creates a field in the appropriate area of the <span class="uicontrol">Data </span>pane for each column. Dates and text values are dimensions, and numbers are measures.</p> <p>However, files that you connect to might include columns that have a mixture of data types, such as numbers and text, or numbers and dates. When you connect to the file, the mixed-value column is mapped to a field with a single data type in Tableau. Therefore, a column that contains numbers and dates might be mapped as a number data type (making it a measure) or it might be mapped as a date data type (in which case Tableau treats it as a dimension.)</p> <p>Tableau determines how to map mixed-value columns to data types by the data types of the first 10,000 rows in an Excel data source, and the first 1,024 rows in a CSV data source. For example, if most of the first 10,000 rows are text values, the entire column is mapped to use the text data type.</p> <p class="note"><b>Note:</b> Empty cells also create mixed-value columns because their formatting is different from text, dates, or numbers.</p> <p>When Tableau determines a data type for each field, if the values in a field don't match that data type, Tableau handles the field in one of several different ways, depending on the data type. For example, sometimes Tableau populates those fields with Null values, as shown in the following table: </p> <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Dates</td> <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">Text is treated as Null. A number is treated as the day in numeric order from 1/1/1900.</td> <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Numbers</td> <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">Text is treated as Null. A date is treated as the number of days since 1/1/1900.</td> <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Boolean</td> <td class="TableStyle-Basic-Border-BodyA-Column1-Body1">Text, dates, and numbers are treated as Null.</td> <p>If using fields that are based on mixed-value columns introduces difficulties when analyzing your data, you can do one of the following:</p> <p>Format empty cells in your underlying data source so that they match the data type of the column.</p>
推荐文章
腼腆的卡布奇诺
·
Data Types - Tableau
3 天前
行走的豆芽
·
javascript - umi的ts版本中的location - SegmentFault 思否
1 年前
从未表白的匕首
·
QTreeView使用总结17:改造QTreeView,实现点击空白处取消选中_pyqt treeview取消选择_逆枫゛的博客-CSDN博客
1 年前
成熟的小熊猫
·
python 不转义变量或常量_python字符串变量不转义_lsh呵呵的博客-CSDN博客
1 年前
强健的柚子
·
Nginx Ingress高级用法_容器服务Kubernetes版-阿里云帮助中心
1 年前
帅呆的帽子
·
nodejs利用readline提示输入内容实例代码_node.js_脚本之家
1 年前