---
schema_version: "1"
id: 5d4cf350b2136b4b3cba827bfc8d40e1e2f643876acfeb5cbf2960ce87e8ee94
title: 关于了解如何创建计算的提示
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/pro/desktop/calculations_calculatedfields_understand_formulas.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/zh-cn/calculations_calculatedfields_understand_formulas.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 889234356ea7e7d1f751736858e3e76680f51ba880c980d15d3bce09b276f14c
description: Tips for learning to build calculation formulas by clarifying your question and researching functions.
---
[跳转到主要内容](#main-content)

# 关于了解如何创建计算的提示

现在，您了解了计算的类型以及何时使用计算，那么您怎么实际知道如何为计算创建公式呢？这是一个棘手的问题。

您不能通过简单的方法来确切地知道如何创建完美的公式；这需要实践和研究。但是，以下是您可以开始学习的一些方法：

**了解您的问题或目的**

如果您知道需要的数据类型，则可以帮助您选择正确的函数，以及正确地设置其格式。例如，如果您需要显示订单的利润，则可以创建类似于以下的公式：SUM (Sales) - SUM (Cost)。

**了解 Tableau 函数**

Tableau 中提供了许多不同的函数。每种类型都有不同的用途。若要了解详细信息，请参阅[Tableau 中的函数](https://help.tableau.com/v0.0/pro/desktop/zh-cn/functions.htm)。

**了解如何设置计算的格式**

熟悉了 Tableau 函数的不同类型及其用途之后，请务必学习如何使用适当的语法来设置计算的格式。若要了解详细信息，请参阅[在 Tableau 中编写计算](https://help.tableau.com/v0.0/pro/desktop/zh-cn/functions_operators.htm)。

**从其他示例中学习**

通过示例来学习很有效。尝试收集在日常分析中使用的常用计算列表。您可以使用以下资源：

- [Tableau 博客：前 10 个 Tableau 表计算](https://www.tableau.com/zh-cn/blog/top-10-tableau-table-calculations)
- [Tableau 博客：前 15 个 LOD 表达式](https://www.tableau.com/zh-cn/about/blog/LOD-expressions)
- [Tableau 博客: 通过使用计算字段的模板节省时间并保持一致性](https://www.tableau.com/zh-cn/about/blog/2017/2/save-time-and-stay-consistent-template-workbook-calculated-fields-66016)

**仍然有问题？**

[请在 Tableau 社区中寻求帮助](https://community.tableau.com/community/forums/content?filterID=contentstatus%5Bpublished%5D~category%5Bcalculations%5D)。

### 本系列中的其他内容：

[了解 Tableau 中的计算](https://help.tableau.com/v0.0/pro/desktop/zh-cn/calculations_calculatedfields_understand.htm)

[Tableau 中的计算类型](https://help.tableau.com/v0.0/pro/desktop/zh-cn/calculations_calculatedfields_understand_types.htm)

[选择正确的计算类型](https://help.tableau.com/v0.0/pro/desktop/zh-cn/calculations_calculatedfields_understand_which.htm)

### 更多计算内容：

[Tableau 中的计算入门指南](https://help.tableau.com/v0.0/pro/desktop/zh-cn/calculations_calculatedfields_create.htm)

[创建简单的计算字段](https://help.tableau.com/v0.0/pro/desktop/zh-cn/calculations_calculatedfields_formulas.htm)