---
schema_version: "1"
id: 150d93f7394226fe7833c63713af951942e639dc28e7baf03ff9e1549c6f1985
title: 连续日期
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/public/desktop/dates_continuous.md
canonical_url: https://help.tableau.com/v0.0/public/desktop/zh-cn/dates_continuous.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 258931ae2046af5add004469c46eb19e2493c202ca863a00aaa8cd63edb37fff
description: Understand continuous dates that create an axis, versus discrete date parts that create labels.
---
[跳转到主要内容](#main-content)

# 连续日期

默认情况下，日期作为离散字段进入视图。日期部分（例如年或月）可以像任何其他离散字段一样使用，并在视图中创建标签。

不过，，您可以选择将日期更改为连续日期。选择字段上下文菜单中的“连续日期”选项之一以使用日期截断（例如 2020 年 3 月或 25/03/2022）而不是日期部分。连续日期会在视图中创建一个轴。

<table style="width: 100%;"><colgroup><col><col></colgroup><tbody><tr><td>离散日期部分</td><td>连续日期截断</td></tr><tr><td><img src="https://help.tableau.com/v0.0/public/desktop/zh-cn/Img/date_level_date_part.png" alt="突出显示以下日期选项的下拉菜单：年、季度、月、日等。"></td><td><img src="https://help.tableau.com/v0.0/public/desktop/zh-cn/Img/date_level_date_value.png" alt="突出显示以下日期值的下拉菜单：年、季度、月、周数、日等。"></td></tr></tbody></table>

## 更改默认值

为了使给定日期字段在默认情况下为连续字段，请在“数据”窗格中右键单击（在 Mac 上按住 control 单击）该字段，并选择“转换为连续”。在视图中使用时，该字段变为绿色并默认为连续日期。若要恢复为离散字段，请在“数据”窗格中右键单击（在 Mac 上按住 Control 单击）该字段，然后选择“转换为离散”。

## 另请参见

有关使用连续或离散字段的影响的详细信息，请参见[维度和度量（蓝色和绿色）](https://help.tableau.com/v0.0/public/desktop/zh-cn/datafields_typesandroles.htm)。